@amsterdam/bmi-component-library
Version:
A React component library based on ASC and Material-UI aimed at repurposing and sharing components across BMI projects
28 lines • 937 B
TypeScript
import type { ReactNode, FC } from 'react';
import { BehaviorSubject } from 'rxjs';
export interface IState {
message: ReactNode;
onConfirm: () => void;
title?: string;
textCancelButton?: string;
textConfirmButton?: string;
onCancel?: () => void;
size?: string;
onClose?: () => void;
}
export type Props = {
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
backdropOpacity?: number;
hideCloseButton?: boolean;
zIndexOffset?: number;
disablePortal?: boolean;
open?: boolean;
store?: BehaviorSubject<IState>;
};
export declare const initialState: IState;
export declare const confirm: ({ title, message, textConfirmButton, textCancelButton, onConfirm, onCancel, }: IState, store?: BehaviorSubject<IState>) => void;
export interface IConfirmDialog extends FC<Props> {
}
declare const ConfirmDialog: IConfirmDialog;
export default ConfirmDialog;
//# sourceMappingURL=ConfirmDialog.d.ts.map