Files
Crm-Frontend/src/app/error.tsx

24 lines
560 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"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>
);
}