{"version":3,"file":"CopyEmail.BQqSrZ6A.mjs","names":["useState","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","navigator","_e","c","init_jsx_runtime","withCopyEmail","copied","setCopied","onClick","EMAIL","Component","props","init_CopyEmail"],"sources":["https:/framerusercontent.com/modules/SFP7qOtbLCnfT1YggBBi/TocENO9hrr95PIQGsbHW/CopyEmail.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState}from\"react\";// The address the Copy chips put on the clipboard. Change it once here.\nconst EMAIL=\"hello@tampcoffee.com\";export function withCopyEmail(Component){return props=>{const[copied,setCopied]=useState(false);const onClick=()=>{navigator.clipboard?.writeText(EMAIL);setCopied(true);setTimeout(()=>setCopied(false),1800);};return /*#__PURE__*/_jsx(Component,{...props,variant:copied?\"Copied\":\"Default\",onClick:onClick});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCopyEmail\":{\"type\":\"reactHoc\",\"name\":\"withCopyEmail\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CopyEmail.map"],"mappings":"A,gIACmC,SAAgBQ,EAAc,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAACC,EAAOC,GAAWV,EAAS,EAAK,EAAQW,MAAY,CAACP,EAAU,WAAW,UAAUQ,CAAK,EAAEF,EAAU,EAAI,EAAE,eAAeA,EAAU,EAAK,EAAE,IAAI,CAAE,EAAE,MAAoB,gBAAKG,EAAU,CAAC,GAAGC,EAAM,QAAQL,EAAO,SAAS,UAAkB,SAAO,CAAC,CAAE,CAAE,C,gDAAjV,EAAM,sB"}