"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("react");function u(r){const[i,d]=o.useState(!1);function e(s){const{code:t}=s;t===r&&d(!0)}const n=s=>{const{code:t}=s;t===r&&d(!1)};return o.useEffect(()=>(window.addEventListener("keydown",e),window.addEventListener("keyup",n),()=>{window.removeEventListener("keydown",e),window.removeEventListener("keyup",n)}),[e,n]),i}exports.useWindowKeyPress=u;
