import type { Metadata } from 'next';
import { AppPage } from '@/components/layout/AppPage';
import { FaviconGenerator } from '@/components/favicon/FaviconGenerator';
import { getToolByHref } from '@/lib/tools';

const tool = getToolByHref('/favicon')!;

export const metadata: Metadata = { title: tool.title, description: tool.summary };

export default function FaviconPage() {
  return (
    <AppPage
      title={tool.title}
      description={tool.summary}
      icon={tool.icon}
    >
      <FaviconGenerator />
    </AppPage>
  );
}
