{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/InYZBAj73h6KsQHDjo5m/VKtyz4GYA7edoOt6iCYf/ButtonShare.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 ButtonShare(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;case\"WhatsApp\":link=\"https://api.whatsapp.com/send?text=\"+currentUrl;break;case\"Instagram\":link=\"https://www.facebook.com/sharer/sharer.php?u=\"+currentUrl;break;}if(currentUrl){return /*#__PURE__*/_jsx(\"a\",{href:link,target:\"_blank\",style:{backgroundColor:props.backgroundColor,...buttonStyle},children:props.children});}return /*#__PURE__*/_jsx(\"div\",{style:{backgroundColor:props.backgroundColor,...buttonStyle}});}addPropertyControls(ButtonShare,{children:{type:ControlType.ComponentInstance},provider:{type:ControlType.Enum,defaultValue:\"Facebook\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\",options:[\"LinkedIn\",\"Twitter\",\"Facebook\",\"Instagram\",\"WhatsApp\"],optionTitles:[\"LinkedIn\",\"Twitter\",\"Facebook\",\"Instagram\",\"WhatsApp\"]},backgroundColor:{type:ControlType.Color,defaultValue:\"#EEEEEE\",title:\"Cor de Fundo\"}});// Styles are written in object syntax\n// https://react.dev/reference/react-dom/components/common#usage\nconst buttonStyle={width:\"100%\",height:\"100%\",border:\"1px solid #B7B7B7\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",borderRadius:4};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\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