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 };

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