From 9bebfaf956e8dac97a2c3a49693415e5c02641a0 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 15 Nov 2025 16:40:08 +0000 Subject: [PATCH] completionId: cgen-076e895821b64358bafd131799da9754 cgen-076e895821b64358bafd131799da9754 --- client/pages/ProfilePassport.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/client/pages/ProfilePassport.tsx b/client/pages/ProfilePassport.tsx index 4e36bb97..8455bd62 100644 --- a/client/pages/ProfilePassport.tsx +++ b/client/pages/ProfilePassport.tsx @@ -386,6 +386,18 @@ const ProfilePassport = () => { profile.username.toLowerCase())), ); + const profileUrl = profile?.username + ? `https://${profile.username}.aethex.me` + : ""; + + const copyProfileLink = () => { + if (profileUrl) { + navigator.clipboard.writeText(profileUrl); + setProfileLinkCopied(true); + setTimeout(() => setProfileLinkCopied(false), 2000); + } + }; + if (loading) { return ; }