import React from 'react'; import { useTranslation } from 'react-i18next'; interface FallbackComponentProps { error?: Error; reset?: () => void; } const FallbackComponent: React.FC = ({ error, reset, }) => { const { t } = useTranslation(); return (

{t('error_boundary.title', 'Something went wrong')}

{t( 'error_boundary.description', 'Sorry, an error occurred while loading the page.', )}

{error && (
{t('error_boundary.details', 'Error details')} {error.toString()}
)}
{reset && ( )}
); }; export default FallbackComponent;