{"version":3,"file":"BackButtonGoBack.DWBo7rYd.mjs","names":[],"sources":["https:/framerusercontent.com/modules/T4R9KTZVqmVIqcMebCdl/1GcrByU9gUrZWskLtFxQ/BackButtonGoBack.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function BackButtonGoBack(props){const{label,fallbackHref,font}=props;const handleClick=()=>{if(typeof window===\"undefined\")return;if(window.history.length>1){window.history.back();}else if(fallbackHref){window.location.href=fallbackHref;}};const handleKeyDown=event=>{if(event.key===\"Enter\"||event.key===\" \"){event.preventDefault();handleClick();}};return /*#__PURE__*/_jsxs(\"div\",{role:\"button\",tabIndex:0,onClick:handleClick,onKeyDown:handleKeyDown,style:{display:\"flex\",flexDirection:\"row\",alignItems:\"center\",justifyContent:\"center\",gap:4,padding:5,borderRadius:4,cursor:\"pointer\",width:\"fit-content\",background:\"transparent\"},children:[/*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 256 256\",style:{flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{fill:\"none\",stroke:\"rgb(138, 138, 138)\",strokeWidth:24,strokeLinecap:\"round\",strokeLinejoin:\"round\",d:\"M164 48 92 128l72 80\"})}),/*#__PURE__*/_jsx(\"span\",{style:{...font,color:\"rgb(138, 138, 138)\",whiteSpace:\"nowrap\"},children:label})]});}BackButtonGoBack.displayName=\"Back Button (Go Back)\";addPropertyControls(BackButtonGoBack,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Go back\"},fallbackHref:{type:ControlType.Link,title:\"Fallback Link\",defaultValue:\"/projects\"},font:{type:ControlType.Font,controls:\"extended\",title:\"Font\",defaultValue:{fontSize:12}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BackButtonGoBack\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sour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