import React from "react"; import { Link, useNavigate } from "react-router"; import { Button } from "~/components/ui/button"; interface NotFoundProps { title?: string; message?: string; showBackButton?: boolean; } export function NotFound({ title = "صفحه یافت نشد", message = "متأسفانه صفحه‌ای که به دنبال آن هستید وجود ندارد یا منتقل شده است.", showBackButton = true, }: NotFoundProps) { const navigate = useNavigate(); const handleGoBack = () => { navigate(-1); }; const handleGoHome = () => { navigate("/dashboard"); }; return (
{/* 404 Illustration */}
404
{/* Error Message */}

{title}

{message}

{/* Action Buttons */}
{showBackButton && ( )}
{/* Additional Help Links */}

یا می‌توانید به این صفحات بروید:

• داشبورد اصلی • مدیریت پروژه‌ها
); } // Specialized 404 component for authenticated users export function AuthenticatedNotFound() { return ( ); } // Specialized 404 component for public pages export function PublicNotFound() { return ( ); }