import * as React from 'react'; import { Translate } from '../i18n/Translate'; export const Confirm = ({ isOpen, content, onClose, onConfirm, title, translateOptions = {}, titleTranslateOptions = translateOptions, contentTranslateOptions = translateOptions, }: { isOpen: boolean; title: string; content: string; onConfirm: () => void; onClose: () => void; translateOptions?: Record; titleTranslateOptions?: Record; contentTranslateOptions?: Record; }) => { return isOpen ? (

{typeof title === 'string' ? ( ) : ( title )}

{typeof content === 'string' ? ( ) : ( content )}

) : null; };