1import{a as o,b as n,j as e,B as l}from"./index-DVrL3xID.js";function d(){const{user:s}=o(),{toast:i}=n(),r=(s==null?void 0:s.id)||"",t=`${window.location.origin}/signup?ref=${r}`,a=async()=>{await navigator.clipboard.writeText(t),i({title:"Referral Link Copied!",description:"Share this link to recruit new affiliates. You'll earn rewards for successful signups."})};return e.jsxs("div",{className:"max-w-lg mx-auto mt-20 bg-white rounded-xl shadow p-8",children:[e.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Recruit Affiliates"}),e.jsx("p",{className:"mb-4",children:"Share your referral link below. Anyone who signs up through your link will be added to your downline!"}),e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("input",{className:"w-full px-3 py-2 border rounded",type:"text",value:t,readOnly:!0}),e.jsx(l,{onClick:a,children:"Copy"})]}),e.jsx("p",{className:"text-gray-500 text-sm",children:"When someone signs up with your link, you'll be able to see them in your referral dashboard."})]})}
1export{d as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.