import Link from 'next/link' import { useTheme } from 'shared/hooks/use-theme.mjs' import { MsfIcon, HelpIcon, DiscordIcon, FacebookIcon, GitHubIcon, InstagramIcon, RedditIcon, TwitterIcon, OpenSourceIcon, YouTubeIcon, } from 'shared/components/icons.mjs' import { social } from 'config/social.mjs' import { siteConfig } from 'site/site.config.mjs' const iconClasses = (color) => ({ className: `w-8 lg:w-12 h-8 lg:h-12 text-${color} hover:text-neutral-content`, }) export const socialList = (spectrum) => ({ MSF: { icon: , href: siteConfig.tld === 'org' ? '/docs/various/pledge/' : 'https://freesewing.org/docs/various/pledge', name: 'Doctors Without Borders / Médecins Sans Frontières', community: false, }, Discord: { icon: , href: social.Discord, community: true, }, Instagram: { icon: , href: social.Instagram, community: true, }, Facebook: { icon: , href: social.Facebook, community: true, }, GitHub: { icon: , href: social.GitHub, community: true, }, Reddit: { icon: , href: social.Reddit, community: true, }, Twitter: { icon: , href: social.Twitter, community: true, }, YouTube: { icon: , href: social.YouTube, community: true, }, 'Open Souce License: MIT': { icon: , href: 'https://github.com/freesewing/freesewing/blob/develop/LICENSE', community: false, }, 'Contact Information': { icon: , href: '/contact', community: false, }, }) export const SocialIcons = () => { const { spectrum } = useTheme() const list = socialList(spectrum) return Object.keys(list).map((item) => ( {list[item].icon} )) }