{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/k68knWmtY3FftF7g8aMM/9gPOgYpbTynWB6wfDG5c/Share_article.js"],
  "sourcesContent": ["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/developers\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function Share_article(props){const[currentUrl,setCurrentUrl]=useState(false);const{tint}=props;let link=\"\";useEffect(()=>{setCurrentUrl(window.location.href);},[]);switch(props.provider){case\"LinkedIn\":link=\"https://www.linkedin.com/shareArticle?mini=true&url=\"+currentUrl;break;case\"Facebook\":link=\"https://www.facebook.com/sharer/sharer.php?u=\"+currentUrl;break;case\"Twitter\":link=\"https://twitter.com/intent/tweet?text=\"+currentUrl;break;}if(currentUrl){return /*#__PURE__*/_jsx(\"a\",{href:link,target:\"_blank\",style:buttonStyle,children:props.children});}return /*#__PURE__*/_jsx(\"div\",{style:buttonStyle});}addPropertyControls(Share_article,{children:{type:ControlType.ComponentInstance},provider:{type:ControlType.Enum,defaultValue:\"LinkedIn\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\",options:[\"LinkedIn\",\"Twitter\",\"Facebook\"],optionTitles:[\"LinkedIn\",\"Twitter\",\"Facebook\"]}});// Styles are written in object syntax\n// https://react.dev/reference/react-dom/components/common#usage\nconst boxStyle={margin:24,width:192,height:192,borderRadius:25};const buttonStyle={width:48,height:48,backgroundColor:\"rgba(0, 0, 0, 1)\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",borderRadius:999};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Share_article\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Share_article.map"],
  "mappings": "4HAAAA,IAEoJ,SAARC,EAA+BC,EAAM,CAAC,GAAK,CAACC,EAAWC,CAAa,EAAEC,EAAS,EAAK,EAAO,CAAC,KAAAC,CAAI,EAAEJ,EAAUK,EAAK,GAA4D,OAAzDC,EAAU,IAAI,CAACJ,EAAc,OAAO,SAAS,IAAI,CAAE,EAAE,CAAC,CAAC,EAASF,EAAM,SAAS,CAAC,IAAI,WAAWK,EAAK,uDAAuDJ,EAAW,MAAM,IAAI,WAAWI,EAAK,gDAAgDJ,EAAW,MAAM,IAAI,UAAUI,EAAK,yCAAyCJ,EAAW,KAAM,CAAC,OAAGA,EAAgCM,EAAK,IAAI,CAAC,KAAKF,EAAK,OAAO,SAAS,MAAMG,EAAY,SAASR,EAAM,QAAQ,CAAC,EAAuBO,EAAK,MAAM,CAAC,MAAMC,CAAW,CAAC,CAAE,CAACC,EAAoBV,EAAc,CAAC,SAAS,CAAC,KAAKW,EAAY,iBAAiB,EAAE,SAAS,CAAC,KAAKA,EAAY,KAAK,aAAa,WAAW,wBAAwB,GAAK,0BAA0B,WAAW,QAAQ,CAAC,WAAW,UAAU,UAAU,EAAE,aAAa,CAAC,WAAW,UAAU,UAAU,CAAC,CAAC,CAAC,EAE79B,IAAMC,EAAY,CAAC,MAAM,GAAG,OAAO,GAAG,gBAAgB,mBAAmB,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,aAAa,GAAG",
  "names": ["init_ssg_sandbox_shims", "Share_article", "props", "currentUrl", "setCurrentUrl", "ye", "tint", "link", "ue", "p", "buttonStyle", "addPropertyControls", "ControlType", "buttonStyle"]
}
