diff --git a/src/_components/SiteFooter.tsx b/src/_components/SiteFooter.tsx index 2357e4e..894b9fa 100644 --- a/src/_components/SiteFooter.tsx +++ b/src/_components/SiteFooter.tsx @@ -6,46 +6,46 @@ * Source: TDS § 3 wireframe (lines 557–574) */ +import { enrichCtaSectionData } from "@/lib/cta-channels"; import { prisma } from "@/lib/prisma"; +import type { CtaSectionData } from "@/types"; export async function SiteFooter() { const currentYear = new Date().getFullYear(); - // Fetch the canonical CTA section by slug for predictable data const ctaSection = await prisma.section.findFirst({ where: { slug: "cta-default" }, select: { data: true }, }); - const channels: any[] = (ctaSection?.data as any)?.channels || []; + const ctaData = enrichCtaSectionData( + (ctaSection?.data as Record) ?? {} + ) as unknown as CtaSectionData; + const channels = ctaData.channels ?? []; return (