import{r as d}from"./index-4g5l5LRQ.js";import{$ as r}from"./index-TrPPXL0M.js";function f(t,e=globalThis==null?void 0:globalThis.document){const o=r(t);d.useEffect(()=>{const a=s=>{s.key==="Escape"&&o(s)};return e.addEventListener("keydown",a),()=>e.removeEventListener("keydown",a)},[o,e])}export{f as $};
