{"version":3,"file":"Arrow.BLXmo6Pi.mjs","names":[],"sources":["https:/framerusercontent.com/modules/9CzpJBTGNCxw2yIrU6v9/CnT3SUUSfJqJsBoP1RMf/Arrow.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function KeyboardNavigationComponent(props){useEffect(()=>{// console.log(\"Left Arrow Destination:\", props.leftArrowDestination)\n// console.log(\"Right Arrow Destination:\", props.rightArrowDestination)\nconst handleKeyDown=event=>{if(event.key===\"ArrowLeft\"){// console.log(\"Navigating to (Left):\", props.leftArrowDestination)\nif(props.leftArrowDestination){window.location.href=props.leftArrowDestination;}}else if(event.key===\"ArrowRight\"){// console.log(\n//     \"Navigating to (Right):\",\n//     props.rightArrowDestination\n// )\nif(props.rightArrowDestination){window.location.href=props.rightArrowDestination;}}};window.addEventListener(\"keydown\",handleKeyDown);return()=>{window.removeEventListener(\"keydown\",handleKeyDown);};},[props.leftArrowDestination,props.rightArrowDestination]);return /*#__PURE__*/_jsx(\"div\",{style:{...props.style}});}KeyboardNavigationComponent.displayName=\"Keyboard Navigation\";addPropertyControls(KeyboardNavigationComponent,{leftArrowDestination:{type:ControlType.Link,title:\"Left Arrow Destination URL\",defaultValue:\"\"},rightArrowDestination:{type:ControlType.Link,title:\"Right Arrow Destination URL\",defaultValue:\"\"}})// Code created by sirdangol\n;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"KeyboardNavigationComponent\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Arrow.map"],"mappings":"0SAA4H,SAAwB,EAA4B,EAAM,CAO6E,OAP5E,MAAc,CAErM,IAAM,EAAc,GAAO,CAAI,EAAM,MAAM,YACxC,EAAM,uBAAsB,EAAO,SAAS,KAAK,EAAM,sBAA+B,EAAM,MAAM,cAIlG,EAAM,wBAAuB,EAAO,SAAS,KAAK,EAAM,wBAA2E,OAAjD,EAAO,iBAAiB,UAAU,EAAc,KAAW,CAAC,EAAO,oBAAoB,UAAU,EAAc,GAAK,CAAC,EAAM,qBAAqB,EAAM,sBAAsB,CAAC,CAAqB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,CAAC,CAAC,sBAPhR,IAA6B,IAAoD,CAOiM,EAA4B,YAAY,sBAAsB,EAAoB,EAA4B,CAAC,qBAAqB,CAAC,KAAK,EAAY,KAAK,MAAM,6BAA6B,aAAa,GAAG,CAAC,sBAAsB,CAAC,KAAK,EAAY,KAAK,MAAM,8BAA8B,aAAa,GAAG,CAAC,CAAC"}