- Rename ColorPage → ColorManipulation (no AppPage wrapper inside) - Move AppPage + title/description/icon to color/page.tsx, consistent with other tools - AppPage now accepts icon prop directly; removes internal usePathname lookup and 'use client' - All tool pages pass tool.summary as description and tool.icon as icon Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
507 B
TypeScript
21 lines
507 B
TypeScript
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 };
|
|
|
|
export default function QRCodePage() {
|
|
return (
|
|
<AppPage
|
|
title={tool.title}
|
|
description={tool.summary}
|
|
icon={tool.icon}
|
|
>
|
|
<QRCodeGenerator />
|
|
</AppPage>
|
|
);
|
|
}
|