import * as React from 'react'; import styles from './Modal.module.scss'; import { Button } from './Button'; import { texts } from '../../texts'; export interface IConfirmDialogProps { title: string; text: string; confirmLabel: string; onConfirm: () => void; onCancel: () => void; busy?: boolean; } export const ConfirmDialog: React.FC = ({ title, text, confirmLabel, onConfirm, onCancel, busy }) => (
{ if (e.target === e.currentTarget) onCancel(); }}>
{title}

{text}

);