Files
3dp-manager/client/src/pages/NotFoundPage.tsx
T
2026-01-31 18:44:09 +03:00

34 lines
924 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.
import { Box, Typography, Button, Container } from '@mui/material';
import { useNavigate } from 'react-router-dom';
export default function NotFoundPage() {
const navigate = useNavigate();
return (
<Box
sx={{
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
minHeight: '100vh',
backgroundColor: 'background.default',
}}
>
<Container maxWidth="md" sx={{ textAlign: 'center' }}>
<Typography variant="h1" color="primary" sx={{ fontWeight: 'bold' }}>
404
</Typography>
<Typography variant="h5" color="text.secondary" gutterBottom>
Страница не найдена
</Typography>
<Button
variant="contained"
size="large"
onClick={() => navigate('/')}
>
На главную
</Button>
</Container>
</Box>
);
}