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

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

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

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