import type { Metadata } from 'next';
import { getTranslations } from 'next-intl/server';
import { LandingHeader } from '@/components/layout/LandingHeader';

export async function generateMetadata({
  params,
}: {
  params: { locale: string };
}): Promise<Metadata> {
  const t = await getTranslations({ locale: params.locale, namespace: 'marketing.docs' });
  return {
    title: t('metadataTitle'),
    description: t('metadataDescription'),
  };
}

export default function DocsLayout({ children }: { children: React.ReactNode }) {
  return (
    <>
      <LandingHeader />
      <main className="pt-20">{children}</main>
    </>
  );
}
