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

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

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

export default function CalculatePage() {
  return (
    <AppPage>
      <Calculator />
    </AppPage>
  );
}
