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

18 lines
521 B
Svelte

<script>
import { confirmationStore } from "@/stores"
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}
confirmText={$confirmationStore.confirmButtonText}
cancelText={$confirmationStore.cancelButtonText}
>
{$confirmationStore.text}
</ModalContent>
</Modal>
{/if}