{"version":3,"file":"BackButton.DKPLi3wr.mjs","names":[],"sources":["https:/framerusercontent.com/modules/QKQI9t1VW1VCYtUX7XQ8/yrLcWMPjf9LQq6ggMPGQ/BackButton.js"],"sourcesContent":["// Mobile back button that navigates to previous page when clicked\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function BackButton(props){const{backgroundColor,textColor,borderRadius,link}=props;const handleClick=()=>{if(typeof window!==\"undefined\"){if(link){window.location.href=link;}else{window.history.back();}}};return /*#__PURE__*/_jsx(\"button\",{onClick:handleClick,style:{position:\"relative\",backgroundColor,color:textColor,borderRadius,border:\"none\",padding:\"16px\",cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:\"100%\",height:\"100%\"},\"aria-label\":\"Go back\",children:/*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M19 12H5M12 19l-7-7 7-7\"})})});}addPropertyControls(BackButton,{link:{type:ControlType.Link,title:\"Link\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:32,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BackButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BackButton.map"],"mappings":"0KAIG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,kBAAgB,YAAU,eAAa,QAAM,EAAgI,OAAoB,EAAK,SAAS,CAAC,YAAvI,CAAW,IAAS,SAAgB,EAAM,EAAO,SAAS,KAAK,EAAW,EAAO,QAAQ,MAAM,GAA4D,MAAM,CAAC,SAAS,WAAW,kBAAgB,MAAM,EAAU,eAAa,OAAO,OAAO,QAAQ,OAAO,OAAO,UAAU,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,MAAM,OAAO,OAAO,OAAO,CAAC,aAAa,UAAU,SAAsB,EAAK,MAAM,CAAC,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,OAAO,eAAe,YAAY,IAAI,cAAc,QAAQ,eAAe,QAAQ,SAAsB,EAAK,OAAO,CAAC,EAAE,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAC,sBAHhsB,IAAoD,CAG8oB,EAAoB,EAAW,CAAC,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,CAAC,gBAAgB,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,aAAa,UAAU,CAAC,UAAU,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,aAAa,UAAU,CAAC,aAAa,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,KAAK,KAAK,CAAC,CAAC"}