Initial Commit

This commit is contained in:
Anders Böttcher
2026-05-11 23:39:16 +02:00
parent 9dde8d8804
commit 50566f2a22
38 changed files with 5840 additions and 1015 deletions
@@ -0,0 +1,18 @@
"use client";
export default function CopyLinkButton({ token }: { token: string }) {
function copy() {
const url = `${window.location.origin}/files/${token}`;
navigator.clipboard.writeText(url).then(() => {
alert("Link copied to clipboard!");
});
}
return (
<button
onClick={copy}
className="flex w-full items-center justify-center gap-2 rounded-xl border border-slate-700 py-3 text-sm font-semibold text-slate-300 hover:bg-slate-800 hover:text-white transition-colors"
>
Copy share link
</button>
);
}