import{r as o}from"./vendor-react-BUCujlKS.js";import{u as n}from"./vendor-radix-ui-react-use-callback-ref-BZPnuXAC.js";function p(a,e=globalThis?.document){const t=n(a);o.useEffect(()=>{const r=s=>{s.key==="Escape"&&t(s)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[t,e])}export{p as u};
