import Logo from "@/components/logo"; import Link from "next/link"; import { getWhatsAppUrl } from "@/lib/whatsapp"; import { WhatsAppIcon } from "@/components/ui/whatsapp-icon"; import { buttonVariants } from "@/components/ui/button"; import { cn } from "@/lib/utils"; import PortableTextRenderer from "@/components/portable-text-renderer"; import { fetchSanityNavigation, fetchSanitySettings, getCurrentYear, } from "@/sanity/lib/fetch"; import { getDynamicFetchOptions, type DynamicFetchOptions, } from "@/sanity/lib/live"; import { NAVIGATION_QUERY_RESULT, SETTINGS_QUERY_RESULT } from "@/sanity.types"; type SanityLink = NonNullable[number]; type FooterProps = { settings: SETTINGS_QUERY_RESULT; navigation: NAVIGATION_QUERY_RESULT; year: number; }; export function Footer({ settings, navigation, year }: FooterProps) { return ( ); } export function FooterFallback() { return ( ); } export async function DynamicFooter() { const { perspective, stega } = await getDynamicFetchOptions(); return ; } export async function CachedFooter({ perspective, stega, }: DynamicFetchOptions) { const [settings, navigation, year] = await Promise.all([ fetchSanitySettings({ perspective, stega }), fetchSanityNavigation({ perspective, stega }), getCurrentYear(), ]); return