blob: 226ccce0eb47f8997ba7da069f0ad3d28e4adf1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<script>
import Invite from '$lib/components/Invite.svelte';
let { invites, createInvite = async () => {} } = $props();
async function onsubmit(event) {
event.preventDefault();
await createInvite();
}
</script>
<form class="form" {onsubmit}>
<button type="submit">create invitation</button>
</form>
<ul class="invite-list">
{#each invites as invite}
<li><Invite id={invite.id} /></li>
{/each}
</ul>
|