import { type SocialLink } from "@/data/site-config"; interface SocialIconsProps { links: readonly SocialLink[] | SocialLink[]; className?: string; iconClassName?: string; } /** * Reusable social icon list. * Used in: Footer, ContactFormSection. */ export function SocialIcons({ links, className = "", iconClassName = "", }: SocialIconsProps) { return (
{links.map((link) => ( ))}
); } /** Inline SVG icons for each social platform */ function SocialSvg({ icon }: { icon: SocialLink["icon"] }) { const size = "h-4 w-4"; switch (icon) { case "facebook": return ( ); case "x-twitter": return ( ); case "linkedin": return ( ); case "youtube": return ( ); } }