import React from 'react'; import { Button } from '@carbon/react'; import { useTranslation } from 'react-i18next'; import styles from './form-error.scss'; interface FormErrorProps { closeWorkspace: () => void; } const FormError: React.FC = ({ closeWorkspace }) => { const { t } = useTranslation(); const handleOpenFormList = () => { closeWorkspace(); }; return (

{t('errorTitle', 'There was an error with this form')}

{t('tryAgainMessage', 'Try opening another form from')} {t('thisList', 'this list')}
{t('or', 'or')}
); }; export default FormError;