{"version":3,"file":"TextLink.BORM9quC.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/IZo38zVPVvGXNwEcSxmE/TQpNOj7mszuKWUOeNWGd/TextLink.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";/**\n * Text Link\n *\n * A text link with a trailing arrow that underlines on hover. Color-agnostic\n * so it works on light and dark sections. This is the standard for all\n * inline text links across the site.\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function TextLink(props){const{label=\"Learn more\",href=\"/\",color=\"#347354\",openInNewTab=false}=props;const[hover,setHover]=useState(false);return /*#__PURE__*/_jsx(\"span\",{style:{position:\"relative\",display:\"inline-flex\",...props.style},children:/*#__PURE__*/_jsxs(\"a\",{href:href,target:openInNewTab?\"_blank\":undefined,rel:openInNewTab?\"noopener noreferrer\":undefined,onMouseEnter:()=>setHover(true),onMouseLeave:()=>setHover(false),style:{fontFamily:\"'Manrope', sans-serif\",fontSize:16,fontWeight:600,lineHeight:1.4,color,textDecoration:hover?\"underline\":\"none\",textUnderlineOffset:3,display:\"inline-flex\",alignItems:\"center\",gap:6,cursor:\"pointer\",whiteSpace:\"nowrap\"},children:[label,/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",children:\"→\"})]})});}addPropertyControls(TextLink,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Learn more\"},href:{type:ControlType.Link,title:\"Link\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#347354\"},openInNewTab:{type:ControlType.Boolean,title:\"New tab\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextLink\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextLink.map"],"mappings":"iLASG,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,QAAM,aAAa,OAAK,IAAI,QAAM,UAAU,eAAa,IAAO,EAAW,CAAC,EAAM,GAAUA,EAAS,EAAK,EAAE,OAAoB,EAAK,OAAO,CAAC,MAAM,CAAC,SAAS,WAAW,QAAQ,cAAc,GAAG,EAAM,KAAK,EAAE,SAAsB,EAAM,IAAI,CAAM,OAAK,OAAO,EAAa,SAAS,IAAA,GAAU,IAAI,EAAa,sBAAsB,IAAA,GAAU,iBAAiB,EAAS,EAAI,EAAE,iBAAiB,EAAS,EAAK,EAAE,MAAM,CAAC,WAAW,wBAAwB,SAAS,GAAG,WAAW,IAAI,WAAW,IAAI,QAAM,eAAe,EAAM,YAAY,OAAO,oBAAoB,EAAE,QAAQ,cAAc,WAAW,SAAS,IAAI,EAAE,OAAO,UAAU,WAAW,QAAQ,EAAE,SAAS,CAAC,EAAmB,EAAK,OAAO,CAAC,cAAc,OAAO,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,iBAT5sB,IAAoD,IAA4B,EAS6nB,EAAoB,EAAS,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,YAAY,EAAE,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,MAAM,EAAE,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,QAAQ,aAAa,SAAS,EAAE,aAAa,CAAC,KAAK,EAAY,QAAQ,MAAM,UAAU,aAAa,EAAK,CAAC,CAAC"}