"use client"; import Link from "next/link"; import { FooterData } from "../../../../api/footerApi"; import footerData from "./footer.json"; interface FooterBottomProps { data: FooterData; } const FooterBottom = ({ data }: FooterBottomProps) => { const effectiveData = data || footerData; // Ensure we always have a valid `bottom` object, even if API shape changes const bottom = effectiveData?.bottom || footerData.bottom; // If bottom is still missing, avoid rendering to prevent runtime errors if (!bottom) { return null; } return (
{bottom.copyright.text} {bottom.copyright.brand} {bottom.copyright.rights}