reablocks
Version:
Component library for React
34 lines (32 loc) • 750 B
TypeScript
import { default as React, ReactNode } from 'react';
export interface ConfirmDialogProps {
/**
* Whether the dialog is open or not
*/
open: boolean;
/**
* The header of the dialog
*/
header: string | ReactNode;
/**
* The content of the dialog
*/
content: string | ReactNode;
/**
* The label for the confirm button
*/
confirmLabel?: string;
/**
* The label for the cancel button
*/
cancelLabel?: string;
/**
* Callback when the confirm button is clicked
*/
onConfirm?: () => void;
/**
* Callback when the cancel button is clicked
*/
onCancel?: () => void;
}
export declare const ConfirmDialog: React.FC<ConfirmDialogProps>;