import { Show } from 'solid-js'; import Button from './Button'; import Modal from './Modal'; /** * Modal confirmation for destructive actions. * * Deliberately interrupting: the actions behind this remove a live * deployment or stored credentials, so they should not be one stray click * away. Escape and the backdrop both cancel; only the button confirms. * * Props: * open, title, message, confirmLabel, cancelLabel, loading, * onConfirm, onCancel */ export default function ConfirmDialog(props) { return ( props.onCancel?.()}>

{props.title || 'Are you sure?'}

{props.message}

); }