import*as e from"react";import{useCallbackRef as t}from"../../react-use-callback-ref/dist/index.js";function r(r,n=globalThis?.document){const o=t(r);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&o(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})}),[o,n])}export{r as useEscapeKeydown};
//# sourceMappingURL=index.js.map
