import { FooterNavigationProps } from "@/types/components/current/footer" import { InternalLink, ExternalLink } from "@/types/requests/footer" function getLink(linkObject: InternalLink | ExternalLink) { if (linkObject.__typename === "FooterNavigationLinksInternalLink") { return { title: linkObject.internal_link.link_text, href: linkObject.internal_link.pageConnection.edges[0].node.url, } } return linkObject.external_link.link } export default function Navigation({ linkGroups }: FooterNavigationProps) { return ( ) }