import KFEmpty, { EmptyType } from '@/components/KFEmpty';
import { useNavigate } from '@umijs/max';

const NoFoundPage = () => {
  const navigate = useNavigate();

  return (
    <KFEmpty
      style={{ height: '100vh' }}
      type={EmptyType.NotFound}
      title="404"
      content={'很抱歉，您访问的页面地址有误，\n或者该页面不存在。'}
      hasFooter={true}
      buttonTitle="返回首页"
      onButtonClick={() => navigate('/')}
    ></KFEmpty>
  );
};

export default NoFoundPage;
