| 1 | export type ConfirmDialogRequest = { |
| 2 | readonly title: string; |
| 3 | readonly message?: string; |
| 4 | readonly cancelText?: string; |
| 5 | readonly confirmText: string; |
| 6 | readonly destructive?: boolean; |
| 7 | readonly onConfirm: () => void; |
| 8 | readonly onCancel?: () => void; |
| 9 | }; |
| 10 | |
| 11 | export type TextInputDialogRequest = { |
| 12 | readonly title: string; |
| 13 | readonly initialValue: string; |
| 14 | readonly cancelText?: string; |
| 15 | readonly confirmText: string; |
| 16 | readonly onConfirm: (value: string) => void; |
| 17 | readonly onCancel?: () => void; |
| 18 | }; |