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

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

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

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