generic-error-alert.tsx 529 B

123456789101112131415161718192021222324
  1. import { useTranslation } from 'react-i18next'
  2. import OLNotification from '@/shared/components/ol/ol-notification'
  3. export default function GenericErrorAlert({
  4. className,
  5. }: {
  6. className?: string
  7. }) {
  8. const { t } = useTranslation()
  9. return (
  10. <OLNotification
  11. className={className}
  12. aria-live="polite"
  13. type="error"
  14. content={
  15. <>
  16. {t('generic_something_went_wrong')}. {t('try_again')}.{' '}
  17. {t('generic_if_problem_continues_contact_us')}.
  18. </>
  19. }
  20. />
  21. )
  22. }