summaryrefslogtreecommitdiff
path: root/ui/lib/components/Invite.svelte
blob: ce4593067993ace5c699a921dc316ed23cf98ea8 (plain)
1
2
3
4
5
6
7
8
9
<script>
  import { copy } from 'svelte-copy';

  let { id } = $props();
  let inviteUrl = $derived(new URL(`/invite/${id}`, document.location));
</script>

<button use:copy={inviteUrl}>copy</button>
<span>{inviteUrl}</span>