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

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

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

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