import { siteConfig } from '@/lib/config'; import { FaGithub, FaTwitter, FaMastodon, FaGit, FaLinkedin } from 'react-icons/fa'; import { FiMail, FiFeather } from 'react-icons/fi'; import { MetaItem } from './meta-item'; export function Hero() { const { name, tagline, social } = siteConfig; const initial = name?.charAt(0)?.toUpperCase() || 'G'; const items = [ social.github && { key: 'github', href: social.github, label: 'GitHub', icon: FaGithub }, social.twitter && { key: 'twitter', href: `https://twitter.com/${social.twitter.replace('@', '')}`, label: 'Twitter', icon: FaTwitter }, social.mastodon && { key: 'mastodon', href: social.mastodon, label: 'Mastodon', icon: FaMastodon }, social.gitea && { key: 'gitea', href: social.gitea, label: 'Gitea', icon: FaGit }, social.linkedin && { key: 'linkedin', href: social.linkedin, label: 'LinkedIn', icon: FaLinkedin }, social.email && { key: 'email', href: `mailto:${social.email}`, label: 'Email', icon: FiMail } ].filter(Boolean) as { key: string; href: string; label: string; icon: any; }[]; return (
{initial}

{tagline}
{items.length > 0 && (
{items.map((item) => ( {item.label} ))}
)}
); }