import{useCallback as e,useEffect as n}from"react";var t=function(t){var o=e((function(e){27===e.keyCode&&t()}),[]);n((function(){return document.addEventListener("keydown",o,!1),function(){document.removeEventListener("keydown",o,!1)}}),[])};export{t as default};
//# sourceMappingURL=useEscPress.js.map
