interface ConfirmModalProps

Passed to ConfirmModal by the component that shows it. The caller decides when it shows and hides it, on either callback.

Properties

message: string
optional
confirmLabel: string

Replaces the "Delete" label.

onConfirm: () => void
onCancel: () => void

Called on Cancel, Escape or a click on the backdrop.

Usage

import { type ConfirmModalProps } from "src/components/shared/ConfirmModal.tsx";