{"version":3,"file":"Share_Facebook_Code.B7jJrqcw.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/g6glGLKk1n6ZDcHTSrL3/OvAdqzLxD004yhSz6SqL/Share_Facebook_Code.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function Twitter_Share(Component){return props=>{const[pageTitle,setPageTitle]=useState(\"\");useEffect(()=>{setPageTitle(document.title) // This will run only on the client side\n;},[]);return /*#__PURE__*/ _jsx(Component,{...props,onTap:()=>{var ref;window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(`Check out this insightful article from: ${pageTitle}. Read it here:`)}&url=${encodeURIComponent(window===null||window===void 0?void 0:(ref=window.location)===null||ref===void 0?void 0:ref.href)}`);}});};}export function Facebook_Share(Component){return props=>{const[pageTitle,setPageTitle]=useState(\"\");useEffect(()=>{setPageTitle(document.title) // This will run only on the client side\n;},[]);return /*#__PURE__*/ _jsx(Component,{...props,onTap:()=>{var ref;window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(window===null||window===void 0?void 0:(ref=window.location)===null||ref===void 0?void 0:ref.href)}&quote=${encodeURIComponent(`Check out this awesome site \"${pageTitle}\" on the Framer gallery. #madewithframer`)}`);}});};}export function LinkedIn_Share(Component){return props=>{const[pageTitle,setPageTitle]=useState(\"\");useEffect(()=>{setPageTitle(document.title) // This will run only on the client side\n;},[]);return /*#__PURE__*/ _jsx(Component,{...props,onTap:()=>{var ref;window.open(`https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(window===null||window===void 0?void 0:(ref=window.location)===null||ref===void 0?void 0:ref.href)}&title=${encodeURIComponent(pageTitle)}&source=framer.com`);},style:{...props.style,cursor:\"pointer\"}});};}export function Whatsapp_Share(Component){return props=>{const[pageTitle,setPageTitle]=useState(\"\");useEffect(()=>{setPageTitle(document.title) // This will run only on the client side\n;},[]);return /*#__PURE__*/ _jsx(Component,{...props,onTap:()=>{var ref;window.open(`https://api.whatsapp.com/send?text=${encodeURIComponent(`Check out this link: ${window===null||window===void 0?void 0:(ref=window.location)===null||ref===void 0?void 0:ref.href}`)}`);}});};}export function Email_Share(Component){return props=>{const[pageTitle,setPageTitle]=useState(\"\");useEffect(()=>{setPageTitle(document.title) // This will run only on the client side\n;},[]);return /*#__PURE__*/ _jsx(Component,{...props,onTap:()=>{var ref;const subject=encodeURIComponent(\"Check out this link!\");const body=encodeURIComponent(`Hi,\n\nI wanted to share this link with you: ${window===null||window===void 0?void 0:(ref=window.location)===null||ref===void 0?void 0:ref.href}`);window.open(`mailto:?subject=${subject}&body=${body}`);}});};}export function Clipboard_Share(Component){return props=>{const[pageTitle,setPageTitle]=useState(\"\");useEffect(()=>{setPageTitle(document.title) // This will run only on the client side\n;},[]);return /*#__PURE__*/ _jsx(Component,{...props,onTap:()=>{const textField=document.createElement(\"textarea\");textField.innerText=window.location.href;document.body.appendChild(textField);textField.select();document.execCommand(\"copy\");textField.remove();alert(\"URL copied to clipboard!\");}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"Twitter_Share\":{\"type\":\"reactHoc\",\"name\":\"Twitter_Share\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LinkedIn_Share\":{\"type\":\"reactHoc\",\"name\":\"LinkedIn_Share\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Whatsapp_Share\":{\"type\":\"reactHoc\",\"name\":\"Whatsapp_Share\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Email_Share\":{\"type\":\"reactHoc\",\"name\":\"Email_Share\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Facebook_Share\":{\"type\":\"reactHoc\",\"name\":\"Facebook_Share\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Clipboard_Share\":{\"type\":\"reactHoc\",\"name\":\"Clipboard_Share\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Share_Facebook_Code.map"],"mappings":"uIAAiF,S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