diff --git a/client/pages/Dashboard.tsx b/client/pages/Dashboard.tsx index fd90c182..2200f86e 100644 --- a/client/pages/Dashboard.tsx +++ b/client/pages/Dashboard.tsx @@ -182,6 +182,18 @@ export default function Dashboard() { } }; + const profileUrl = profile?.username + ? `https://${profile.username}.aethex.me` + : ""; + + const copyProfileLink = () => { + if (profileUrl) { + navigator.clipboard.writeText(profileUrl); + setProfileLinkCopied(true); + setTimeout(() => setProfileLinkCopied(false), 2000); + } + }; + if (authLoading) { return ; }