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

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

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

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