chadtmiller.com/spaces-bookclub
Book club: a Svelte demo app for atproto spaces (@atproto/lex-space)
0
0
<script lang="ts">
import ActionDialog from './ActionDialog.svelte'
let {
open = $bindable(false),
title,
message,
confirmLabel,
onconfirm,
}: {
open?: boolean
title: string
message: string
confirmLabel: string
onconfirm: () => Promise<void>
} = $props()
</script>
<ActionDialog
bind:open
{title}
description={message}
submitLabel={confirmLabel}
submitIcon="trash"
tone="danger"
onsubmit={onconfirm}
/>