Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

1.3 KB
Raw Blame
import { t } from 'i18next';
import { LucideIcon, SearchX } from 'lucide-react';
import React from 'react';
import { Link } from 'react-router-dom';

import { Button } from '@/components/ui/button';

interface NotFoundPageProps {
  title?: string;
  description?: string;
  showHomeButton?: boolean;
  buttonText?: string;
  icon?: LucideIcon;
}

const NotFoundPage: React.FC<NotFoundPageProps> = ({
  title = 'Oops! Page Not Found',
  description = "The page you're looking for isn't here. Want to try going back home?",
  showHomeButton = true,
  buttonText = 'Go Home',
  icon: Icon = SearchX,
}) => {
  return (
    <div className="mx-auto max-w-(--breakpoint-xl) px-4 py-8 lg:px-6 lg:py-16 bg-gray-1">
      <div className="mx-auto max-w-(--breakpoint-sm) text-center">
        <div className="mx-auto mb-8 flex justify-center">
          <Icon className="h-24 w-24" />
        </div>
        <p className="mb-4 text-3xl font-semibold tracking-tight text-gray-12">
          {t(title)}
        </p>

        <p className="mb-4 text-lg font-light text-gray-12">{t(description)}</p>
        {showHomeButton && (
          <Link to="/">
            <Button size="lg" variant={'default'}>
              {t(buttonText)}
            </Button>
          </Link>
        )}
      </div>
    </div>
  );
};

export default NotFoundPage;