import{i as e,n as t}from"./jsx-runtime-DG_AJzB_.js";import{S as n,x as r}from"./createReactComponent-_L2mp4Ui.js";var i=e(t());function a(e,t){let a=i.useRef(e),o=n(t);r(()=>{a.current!==e&&o(a.current)},[e,o]),r(()=>{a.current=e},[e])}export{a as t};