1 | import type { Node } from 'react';
|
2 |
|
3 | declare type ConfirmationModal = {
|
4 | showCancel?: boolean,
|
5 | cancelText?: string,
|
6 | confirmText?: string,
|
7 | element: ?HTMLElement,
|
8 | modalContent: Node,
|
9 | onConfirm: () => void,
|
10 | onCancel: () => void,
|
11 | onClose?: HTMLElement => void,
|
12 | };
|
13 |
|
14 | declare type ModalState = ?ConfirmationModal;
|