mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-29 05:00:06 +02:00
14 lines
447 B
TypeScript
14 lines
447 B
TypeScript
import { FC, ReactNode } from 'react'
|
|
import { DefaultMessage } from './default-message'
|
|
import OLNotification from '@/features/ui/components/ol/ol-notification'
|
|
|
|
export const ErrorBoundaryFallback: FC<
|
|
React.PropsWithChildren<{ modal?: ReactNode }>
|
|
> = ({ children, modal }) => {
|
|
return (
|
|
<div className="error-boundary-alert">
|
|
<OLNotification type="error" content={children || <DefaultMessage />} />
|
|
{modal}
|
|
</div>
|
|
)
|
|
}
|