diff --git a/app/sites/[id]/settings/page.tsx b/app/sites/[id]/settings/page.tsx
index 4b2729d..fd90be8 100644
--- a/app/sites/[id]/settings/page.tsx
+++ b/app/sites/[id]/settings/page.tsx
@@ -40,6 +40,7 @@ export default function SiteSettingsPage() {
excluded_paths: ''
})
const [scriptCopied, setScriptCopied] = useState(false)
+ const [linkCopied, setLinkCopied] = useState(false)
useEffect(() => {
loadSite()
@@ -127,6 +128,14 @@ export default function SiteSettingsPage() {
setTimeout(() => setScriptCopied(false), 2000)
}
+ const copyLink = () => {
+ const link = `${APP_URL}/share/${siteId}`
+ navigator.clipboard.writeText(link)
+ setLinkCopied(true)
+ toast.success('Link copied to clipboard')
+ setTimeout(() => setLinkCopied(false), 2000)
+ }
+
if (loading) {
return
- Set a password to restrict access to the public dashboard. -
++ Share this link with others to view the dashboard. +
++ Set a password to restrict access to the public dashboard. +
+