"use strict";var e=require("react");module.exports=function(n){var t=e.useCallback((function(e){27===e.keyCode&&n()}),[]);e.useEffect((function(){return document.addEventListener("keydown",t,!1),function(){document.removeEventListener("keydown",t,!1)}}),[])};
//# sourceMappingURL=useEscPress.js.map
