import{r as e}from"./index-55b8aeb0.js";function p(l){const{controlled:t,default:n,name:d,state:f="value"}=l,{current:o}=e.useRef(t!==void 0),[a,s]=e.useState(n),u=o?t:a,r=e.useCallback(c=>{o||s(c)},[]);return[u,r]}export{p as u};
