import { FallbackProps } from 'react-error-boundary'; import { ThemeProvider, useTheme } from '@emotion/react'; import isEmpty from 'lodash.isempty'; import { IconRefresh, THEME_LIGHT } from 'twenty-ui'; import { Button } from '@/ui/input/button/components/Button'; import AnimatedPlaceholder from '@/ui/layout/animated-placeholder/components/AnimatedPlaceholder'; import { AnimatedPlaceholderEmptyContainer, AnimatedPlaceholderEmptySubTitle, AnimatedPlaceholderEmptyTextContainer, AnimatedPlaceholderEmptyTitle, } from '@/ui/layout/animated-placeholder/components/EmptyPlaceholderStyled'; type GenericErrorFallbackProps = FallbackProps; export const GenericErrorFallback = ({ error, resetErrorBoundary, }: GenericErrorFallbackProps) => { const theme = useTheme(); return ( Server’s on a coffee break {error.message}