app

Local-first trade for farms and co-ops
git clone https://radroots.dev/git/app.git
Log | Files | Refs | README | LICENSE

ConfirmPanel.svelte (546B)


      1 <script lang="ts">
      2   let {
      3     title,
      4     text,
      5     confirmLabel,
      6     onconfirm,
      7     oncancel
      8   }: {
      9     title: string;
     10     text: string;
     11     confirmLabel: string;
     12     onconfirm: () => void;
     13     oncancel: () => void;
     14   } = $props();
     15 </script>
     16 
     17 <section class="stack" aria-label={title}>
     18   <h2>{title}</h2>
     19   <p>{text}</p>
     20   <div class="cluster">
     21     <button type="button" class="button button--primary" onclick={onconfirm}
     22       >{confirmLabel}</button
     23     >
     24     <button type="button" onclick={oncancel}>Keep editing</button>
     25   </div>
     26 </section>