Files

30 lines
1.0 KiB
TypeScript
Raw Permalink 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 React from 'react';
import { Link } from '@remix-run/react';
interface ErrorBoundaryProps {
status: number;
statusText: string;
message: string;
}
export function ErrorBoundary({ status, statusText, message }: ErrorBoundaryProps) {
return (
<div className="min-h-screen flex flex-col items-center justify-center bg-gray-50 px-4">
<div className="text-center">
<h1 className="text-6xl font-bold text-primary mb-4">{status}</h1>
<p className="text-xl font-medium text-gray-800 mb-6">{statusText}</p>
<p className="text-base text-gray-600 mb-8">{message}</p>
<Link
to="/"
className="ant-btn ant-btn-primary"
>
<i className="ri-home-line mr-1"></i>
</Link>
</div>
<div className="mt-12 text-center">
<p className="text-sm text-gray-500"></p>
{/* <p className="text-sm text-gray-500 mt-1">技术支持:support@tobacco-ai-system.com</p> */}
</div>
</div>
);
}