UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

52 lines (51 loc) 1.07 kB
import React from 'react'; export interface ConfirmDialogProps { /** * Handles confirm dialog opening */ open: boolean; /** * Confirm dialog title */ title?: React.ReactNode; /** * Confirm dialog content * @default null */ content?: React.ReactNode; /** * Handles confirm button click * @default null */ btnConfirm?: React.ReactNode; /** * Handles cancel button click * @default null */ btnCancel?: React.ReactNode; /** * Handles component update * @default false */ isUpdating?: boolean; /** * Handles dialog closing * @default null */ onClose?: () => void; /** * Handles dialog confirm * @default null */ onConfirm?: () => void; /** * Handles backdrop disable on click * @default false */ disableBackdropClick?: boolean; /** * Any other properties */ [p: string]: any; } export default function ConfirmDialog(props: ConfirmDialogProps): JSX.Element;