import { getCachedGlobal } from '@/utilities/getGlobals' import Link from 'next/link' import React from 'react' import type { Footer } from '@/payload-types' import { CMSLink } from '@/components/Link' import { Logo } from '@/components/Logo/Logo' export async function Footer() { const footerData = await getCachedGlobal("footer", 1)() as unknown as Footer const columns = footerData?.columns || [] const navItems = footerData?.navItems || [] const hasColumns = columns.length > 0 const bottomLeft = (footerData?.bottomLeftText || '© {year} Fiber Direkt. Alla rättigheter förbehållna.').replace('{year}', new Date().getFullYear().toString()) const bottomRight = footerData?.bottomRightText || 'Svenskt datacenter · ISO 27001 · ISO 14001' return ( ) }