import { MarketingNav } from "@/components/marketing/marketing-nav";
import { MarketingFooter } from "@/components/marketing/marketing-footer";
import { getEffectiveMarketingLocale } from "@/lib/marketing-locale";

export default async function MarketingLayout({ children }: { children: React.ReactNode }) {
  const locale = await getEffectiveMarketingLocale();

  return (
    <div className="flex min-h-screen flex-col">
      <MarketingNav />
      <main className="flex-1">{children}</main>
      <MarketingFooter locale={locale} />
    </div>
  );
}
