confirm

An instance to display a confirm dialog that covers the entire Dashboard, and prevents the user from interacting with anything under it.

How to use

add

import { Plugin } from '@root'

const confirmPayload = {
    message: `Are you sure about that 🤔?`,
    onClose: () => {},
    onCancel: () => {}
    onConfirm: () => {},
    closable: true,
    localizations: {
        cancel: 'Cancel',
        confirm: 'Confirm'
    }
}

Plugin.confirm.add(confirmPayload)

remove

simply by calling Plugin.confirm.remove()

Last updated