mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-15 07:17:00 +10:00
0bc53b9c2a
- update translations - convert image to base64 before sending to printer - update development docs
28 lines
881 B
TypeScript
28 lines
881 B
TypeScript
import { Trans } from "@lingui/react/macro";
|
|
import { ArrowClockwiseIcon, WarningIcon } from "@phosphor-icons/react";
|
|
import type { ErrorComponentProps } from "@tanstack/react-router";
|
|
import { Button } from "@/components/ui/button";
|
|
import { Alert, AlertDescription, AlertTitle } from "../ui/alert";
|
|
import { BrandIcon } from "../ui/brand-icon";
|
|
|
|
export function ErrorScreen({ error, reset }: ErrorComponentProps) {
|
|
return (
|
|
<div className="mx-auto flex h-svh max-w-md flex-col items-center justify-center gap-y-4">
|
|
<BrandIcon variant="logo" className="size-12" />
|
|
|
|
<Alert>
|
|
<WarningIcon />
|
|
<AlertTitle>
|
|
<Trans>An error occurred while loading the page.</Trans>
|
|
</AlertTitle>
|
|
<AlertDescription>{error.message}</AlertDescription>
|
|
</Alert>
|
|
|
|
<Button onClick={reset}>
|
|
<ArrowClockwiseIcon />
|
|
<Trans>Refresh</Trans>
|
|
</Button>
|
|
</div>
|
|
);
|
|
}
|