{"version":3,"file":"BackButton.BC3b0p3f.mjs","names":["useCallback"],"sources":["https:/framerusercontent.com/modules/j5ZXTIOBfi3wQh4Te60D/NUpBNCCZtzpMANvArcGA/BackButton.js"],"sourcesContent":["// Back Button with Arrow\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useCallback,startTransition}from\"react\";/**\n * Back Button\n *\n * @framerIntrinsicWidth 120\n * @framerIntrinsicHeight 44\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function BackButton(props){const{label,background,textColor,borderRadius,font,style}=props;const handleClick=useCallback(()=>{if(typeof window!==\"undefined\"&&window.history.length>1){startTransition(()=>window.history.back());}},[]);return /*#__PURE__*/_jsxs(\"button\",{type:\"button\",\"aria-label\":label,onClick:handleClick,style:{...style,display:\"flex\",alignItems:\"center\",gap:10,background,color:textColor,border:\"none\",borderRadius,padding:\"10px 20px\",cursor:\"pointer\",outline:\"none\",...font},children:[/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M12.5 15L7.5 10L12.5 5\",stroke:textColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})}),/*#__PURE__*/_jsx(\"span\",{style:{minWidth:\"max-content\"},children:label})]});}addPropertyControls(BackButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Back\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:32},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BackButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"44\",\"framerIntrinsicWidth\":\"120\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BackButton.map"],"mappings":"sMASG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,aAAW,YAAU,eAAa,OAAK,SAAO,EAAY,EAAYA,MAAgB,CAAW,IAAS,QAAa,EAAO,QAAQ,OAAO,GAAG,MAAoB,EAAO,QAAQ,MAAM,CAAC,EAAI,EAAE,CAAC,CAAC,OAAoB,EAAM,SAAS,CAAC,KAAK,SAAS,aAAa,EAAM,QAAQ,EAAY,MAAM,CAAC,GAAG,EAAM,QAAQ,OAAO,WAAW,SAAS,IAAI,GAAG,aAAW,MAAM,EAAU,OAAO,OAAO,eAAa,QAAQ,YAAY,OAAO,UAAU,QAAQ,OAAO,GAAG,EAAK,CAAC,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,cAAc,OAAO,SAAsB,EAAK,OAAO,CAAC,EAAE,yBAAyB,OAAO,EAAU,YAAY,IAAI,cAAc,QAAQ,eAAe,QAAQ,CAAC,CAAC,CAAC,CAAc,EAAK,OAAO,CAAC,MAAM,CAAC,SAAS,cAAc,CAAC,SAAS,EAAM,CAAC,CAAC,CAAC,CAAC,sBARnxB,IAAoD,IAA+C,CAQkrB,EAAoB,EAAW,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,OAAO,CAAC,WAAW,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,CAAC,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,OAAO,QAAQ,WAAW,cAAc,UAAU,WAAW,MAAM,CAAC,CAAC,CAAC"}