{"version":3,"file":"ShareButton.qFuN-erf.mjs","names":[],"sources":["https:/framerusercontent.com/modules/UVD8G5ALJd43CPJ0xIEm/ONUAzPDQHTTQTCyN8uSy/ShareButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import CodablePrimaryButton from\"https://framerusercontent.com/modules/CfSS7N0Q3JUUenYzl3XJ/nUxTef7NT42msFVh6UpB/CodablePrimaryButton.js\";import{addPropertyControls,ControlType}from\"framer\";export default function ShareButton(props){var _props_theme;return /*#__PURE__*/_jsx(CodablePrimaryButton,{text:props.text,theme:(_props_theme=props.theme)!==null&&_props_theme!==void 0?_props_theme:\"Black\",onClick:()=>{if(navigator.share){navigator.share({title:props.shareTitle,text:props.shareText,url:props.shareUrl}).catch(console.error);}}});}// Props\nShareButton.defaultProps={text:\"Share\",shareTitle:undefined,shareText:undefined,shareUrl:undefined,theme:\"Black\"};addPropertyControls(ShareButton,{text:{title:\"Text\",type:ControlType.String},shareTitle:{title:\"Share Title\",type:ControlType.String},shareText:{title:\"Share Text\",type:ControlType.String},shareUrl:{title:\"Share Url\",type:ControlType.String},theme:{title:\"Theme\",type:ControlType.Enum,options:[\"Black\",\"Blue\"],defaultValue:\"Black\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ShareButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"qOAAyO,SAAwB,EAAY,EAAM,CAAkB,OAAoB,EAAK,EAAqB,CAAC,KAAK,EAAM,KAAK,MAAoB,EAAM,OAAkD,QAAQ,YAAY,CAAI,EAAU,OAAO,EAAU,MAAM,CAAC,MAAM,EAAM,WAAW,KAAK,EAAM,UAAU,IAAI,EAAM,SAAS,CAAC,CAAC,MAAM,QAAQ,MAAM,EAAI,CAAC,sBAAzhB,IAA0I,IAAoD,CACzO,EAAY,aAAa,CAAC,KAAK,QAAQ,WAAW,IAAA,GAAU,UAAU,IAAA,GAAU,SAAS,IAAA,GAAU,MAAM,QAAQ,CAAC,EAAoB,EAAY,CAAC,KAAK,CAAC,MAAM,OAAO,KAAK,EAAY,OAAO,CAAC,WAAW,CAAC,MAAM,cAAc,KAAK,EAAY,OAAO,CAAC,UAAU,CAAC,MAAM,aAAa,KAAK,EAAY,OAAO,CAAC,SAAS,CAAC,MAAM,YAAY,KAAK,EAAY,OAAO,CAAC,MAAM,CAAC,MAAM,QAAQ,KAAK,EAAY,KAAK,QAAQ,CAAC,QAAQ,OAAO,CAAC,aAAa,QAAQ,CAAC,CAAC"}