import type { DrizzleClient } from '@/server/db/client';
import type { LoadCtx } from '@/server/page-layout/types';
import type { Config } from './config';

// Config-only module — active slug derived from ctx.routeParams.slug in Component.
export async function loadData(_db: DrizzleClient, _config: Config, ctx: LoadCtx) {
  // Pass active slug through data so Component can highlight the active chip.
  return { activeSlug: ctx.routeParams?.slug ?? null };
}
