import { Trans } from "@lingui/react/macro" import { Box, Button, Container, Group, Text, Title } from "@mantine/core" import { TbRefresh } from "react-icons/tb" import { tss } from "@/tss" import { PageTitle } from "./PageTitle" const useStyles = tss.create(({ theme }) => ({ root: { paddingTop: 80, }, label: { textAlign: "center", fontWeight: "bold", fontSize: 120, lineHeight: 1, marginBottom: `calc(${theme.spacing.xl} * 1.5)`, color: theme.colors[theme.primaryColor][3], }, title: { textAlign: "center", fontWeight: "bold", fontSize: 32, }, description: { maxWidth: 540, margin: "auto", marginTop: theme.spacing.xl, marginBottom: `calc(${theme.spacing.xl} * 1.5)`, }, })) export function ErrorPage(props: { error: Error }) { const { classes } = useStyles() return (
Oops! <Trans>Something bad just happened...</Trans> {props.error.message}
) }