anvil/striker-ui/types/ConfirmDialog.d.ts

23 lines
689 B
TypeScript

type ConfirmDialogOptionalProps = {
actionCancelText?: string;
closeOnProceed?: boolean;
dialogProps?: Partial<import('@mui/material').DialogProps>;
loadingAction?: boolean;
onActionAppend?: ContainedButtonProps['onClick'];
onProceedAppend?: ContainedButtonProps['onClick'];
onCancelAppend?: ContainedButtonProps['onClick'];
openInitially?: boolean;
proceedButtonProps?: ContainedButtonProps;
proceedColour?: 'blue' | 'red';
};
type ConfirmDialogProps = ConfirmDialogOptionalProps & {
actionProceedText: string;
content: import('@mui/material').ReactNode;
titleText: string;
};
type ConfirmDialogForwardedRefContent = {
setOpen?: (value: boolean) => void;
};