import{r as e}from"./rolldown-runtime-CpWojdLp.js";import{r as t}from"./jsx-runtime-BrKkGzFB.js";var n=e(t(),1);function r(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}export{r as t};