import * as React from 'react'; import { LocalizerType } from '../types/Util'; import { ConfirmationModal } from './ConfirmationModal'; export type PropsType = { buttonText: string; description: string; title: string; onClose: () => void; i18n: LocalizerType; }; function focusRef(el: HTMLElement | null) { if (el) { el.focus(); } } export const ErrorModal = (props: PropsType): JSX.Element => { const { buttonText, description, i18n, onClose, title } = props; return (
{description || i18n('ErrorModal--description')}
); };