budibase/packages/client/src/components/ConfirmationDisplay.svelte

16 lines
409 B
Svelte

<script>
import { confirmationStore } from "../store"
import { Modal, ModalContent } from "@budibase/bbui"
</script>
{#if $confirmationStore.showConfirmation}
<Modal fixed on:cancel={confirmationStore.actions.cancel}>
<ModalContent
title={$confirmationStore.title}
onConfirm={confirmationStore.actions.confirm}
>
{$confirmationStore.text}
</ModalContent>
</Modal>
{/if}