Files
d8d-admin-mobile-starter-pu…/client/admin/components/NotFoundPage.tsx
2025-05-14 12:30:15 +00:00

30 lines
879 B
TypeScript

import React from 'react';
import { useNavigate } from 'react-router';
import { Button } from 'antd';
import { useTheme } from '../hooks_sys.tsx';
export const NotFoundPage = () => {
const navigate = useNavigate();
const { isDark } = useTheme();
return (
<div className="flex flex-col items-center justify-center flex-grow p-4"
style={{ color: isDark ? '#fff' : 'inherit' }}
>
<div className="max-w-3xl w-full">
<h1 className="text-2xl font-bold mb-4">404 - </h1>
<p className="mb-6 text-gray-600 dark:text-gray-300">
访
</p>
<div className="flex gap-4">
<Button
type="primary"
onClick={() => navigate('/admin')}
>
</Button>
</div>
</div>
</div>
);
};