diff --git a/src/components/ICONS.jsx b/src/components/ICONS.jsx index 8e174d6..f919267 100644 --- a/src/components/ICONS.jsx +++ b/src/components/ICONS.jsx @@ -102,4 +102,5 @@ export const ICONS = { document: () => import('@iconify-icons/mingcute/document-line'), 'arrows-right': () => import('@iconify-icons/mingcute/arrows-right-line'), code: () => import('@iconify-icons/mingcute/code-line'), + copy: () => import('@iconify-icons/mingcute/copy-2-line'), }; diff --git a/src/components/account-info.jsx b/src/components/account-info.jsx index dc4b24c..37e5f59 100644 --- a/src/components/account-info.jsx +++ b/src/components/account-info.jsx @@ -1053,6 +1053,27 @@ function RelatedActions({ )} + { + const handle = `@${currentInfo?.acct || acct}`; + try { + navigator.clipboard.writeText(handle); + showToast('Handle copied'); + } catch (e) { + console.error(e); + showToast('Unable to copy handle'); + } + }} + > + + + Copy handle +
+ + @{currentInfo?.acct || acct} + +
+
{niceAccountURL(url)}