feat: loading and error pages

This commit is contained in:
2025-08-30 23:46:46 +04:00
parent 26c7209de0
commit ab7ef1e753
8 changed files with 123 additions and 89 deletions

23
src/app/error.tsx Normal file
View File

@ -0,0 +1,23 @@
"use client";
import { Button, Center, Stack, Text } from "@mantine/core";
export default function Error({
reset,
}: {
error: Error & { digest?: string };
reset: () => void;
}) {
return (
<Center h="100vh">
<Stack align="center">
<Text
size="lg"
fw={500}>
Что-то пошло не так
</Text>
<Button onClick={reset}>Попробовать снова</Button>
</Stack>
</Center>
);
}