error-boundary-fallback.tsx 423 B

123456789101112131415
  1. import { FC, ReactNode } from 'react'
  2. import { DefaultMessage } from './default-message'
  3. import OLNotification from '@/features/ui/components/ol/ol-notification'
  4. export const ErrorBoundaryFallback: FC<{ modal?: ReactNode }> = ({
  5. children,
  6. modal,
  7. }) => {
  8. return (
  9. <div className="error-boundary-alert">
  10. <OLNotification type="error" content={children || <DefaultMessage />} />
  11. {modal}
  12. </div>
  13. )
  14. }