{"version":3,"file":"BackButton.CKdMVSWw.mjs","names":[],"sources":["https:/framerusercontent.com/modules/vAL42EljlzTXuHEKLePC/NmwHaAJgykMtoSmeDNPn/BackButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function BackButton({label=\"Retour\",showText=false}){function handleClick(){if(window.history.length>1){window.history.back();}else{// fallback si pas d’historique\nwindow.location.assign(\"/\");}}return /*#__PURE__*/_jsxs(\"button\",{onClick:handleClick,style:{padding:\"8px 16px\",borderRadius:\"6px\",border:\"1px solid BLACK\",background:\"BLACK\",color:\"WHITE\",cursor:\"pointer\",fontSize:\"14px\",display:\"flex\",alignItems:\"center\",gap:\"8px\"},children:[/*#__PURE__*/_jsx(\"span\",{className:\"material-symbols-outlined\",style:{fontSize:\"20px\",lineHeight:1},children:\"arrow_back\"}),showText&&/*#__PURE__*/_jsx(\"span\",{children:label})]});}addPropertyControls(BackButton,{label:{type:ControlType.String,title:\"Text\"},showText:{type:ControlType.Boolean,title:\"Show text\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BackButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BackButton.map"],"mappings":"gRAA6G,SAAwB,EAAW,CAAC,QAAM,SAAS,WAAS,IAAO,CAAC,SAAS,GAAa,CAAI,EAAO,QAAQ,OAAO,EAAG,EAAO,QAAQ,MAAM,CACzP,EAAO,SAAS,OAAO,IAAI,CAAG,OAAoB,EAAM,SAAS,CAAC,QAAQ,EAAY,MAAM,CAAC,QAAQ,WAAW,aAAa,MAAM,OAAO,kBAAkB,WAAW,QAAQ,MAAM,QAAQ,OAAO,UAAU,SAAS,OAAO,QAAQ,OAAO,WAAW,SAAS,IAAI,MAAM,CAAC,SAAS,CAAc,EAAK,OAAO,CAAC,UAAU,4BAA4B,MAAM,CAAC,SAAS,OAAO,WAAW,EAAE,CAAC,SAAS,aAAa,CAAC,CAAC,GAAuB,EAAK,OAAO,CAAC,SAAS,EAAM,CAAC,CAAC,CAAC,CAAC,sBADjZ,IAAoD,CAC+V,EAAoB,EAAW,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,CAAC,SAAS,CAAC,KAAK,EAAY,QAAQ,MAAM,YAAY,aAAa,GAAM,CAAC,CAAC"}