import { Box, Center, Group, Stack } from '@mantine/core'; import type { FallbackProps } from 'react-error-boundary'; import { RiErrorWarningLine } from 'react-icons/ri'; import { useRouteError } from 'react-router'; import styled from 'styled-components'; import { Button, Text } from '/@/renderer/components'; const Container = styled(Box)` background: var(--main-bg); `; export const ErrorFallback = ({ resetErrorBoundary }: FallbackProps) => { const error = useRouteError() as any; return (
Something went wrong {error.message}
); };