import { loadServerBranding } from '@server/branding/loader';
import LandingShell from './LandingShell';

export const revalidate = 60;

export default async function LandingLayout({ children }: { children: React.ReactNode }) {
  const { branding } = await loadServerBranding();
  return (
    <LandingShell
      initialBranding={{
        site_logo_url: branding.site_logo_url,
        site_primary_color: branding.site_primary_color,
        site_title: branding.site_title,
        site_tagline: branding.site_tagline,
        site_font_family: branding.site_font_family,
        site_favicon_url: branding.site_favicon_url,
      }}
    >
      {children}
    </LandingShell>
  );
}
