"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index12.css');const t=require("react/jsx-runtime"),c=require("react"),l=require("../../helpers-BD5fFZi-.cjs"),i="_controls_1kzpr_15",d="_wrapper_1kzpr_33",o={controls:i,wrapper:d},p=({children:n,onSaveShortcut:r,...a})=>(c.useEffect(()=>{if(!r)return;const s=e=>{!(e.key.toLowerCase()==="s"&&(e.metaKey||e.ctrlKey)&&!e.altKey&&!e.shiftKey)||e.defaultPrevented||e.repeat||(e.preventDefault(),r())};return document.addEventListener("keydown",s),()=>{document.removeEventListener("keydown",s)}},[r]),t.jsx("div",{className:o.wrapper,"data-wrapper":!0,"data-component":"controls",children:t.jsx("div",{className:o.controls,children:t.jsx("menu",{"data-animation":"stagger",...a,children:l.wrapChildren(n)})})}));exports.Controls=p;
//# sourceMappingURL=index.cjs.map
