~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/spaces-bookclub

Book club: a Svelte demo app for atproto spaces (@atproto/lex-space)

0
0
main
27 lines · 467 B Raw History
<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}
/>