import { cn } from '@/lib/utils' import { getCachedGlobal } from '@/utilities/globalReads' import Link from 'next/link' import { FacebookIcon, GlobeIcon, InstagramIcon, WhatsAppIcon, YoutubeIcon } from './socialIcons' const icons = { instagram: InstagramIcon, facebook: FacebookIcon, youtube: YoutubeIcon, whatsapp: WhatsAppIcon, custom: GlobeIcon, } as const const defaultA11yLabels: Record = { instagram: 'Instagram', facebook: 'Facebook', youtube: 'YouTube', whatsapp: 'WhatsApp', custom: 'Link externo', } type SocialLinksProps = { ariaLabel: string className?: string } export const SocialLinks = async ({ ariaLabel, className }: SocialLinksProps) => { const { socialLinks: links } = await getCachedGlobal('site-settings', 2)() if (!links?.length) return null return ( ) }