// __SDEFILE__ - This file is a dependency for the stand-alone environment
import Link from 'next/link'
import { useTheme } from 'shared/hooks/use-theme.mjs'
import {
MsfIcon,
HeartIcon,
DiscordIcon,
FacebookIcon,
GitHubIcon,
InstagramIcon,
RedditIcon,
MastodonIcon,
CloudIcon,
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/about/pledge/' : 'https://freesewing.org/docs/about/pledge',
name: 'Doctors Without Borders / Médecins Sans Frontières',
community: false,
},
GitHub: {
icon: ,
href: social.GitHub,
community: true,
},
Mastodon: {
icon: ,
href: social.Mastodon,
community: true,
},
Instagram: {
icon: ,
href: social.Instagram,
community: true,
},
Bluesky: {
icon: ,
href: social.Bluesky,
community: true,
},
Discord: {
icon: ,
href: social.Discord,
community: true,
},
Facebook: {
icon: ,
href: social.Facebook,
community: true,
},
Reddit: {
icon: ,
href: social.Reddit,
community: true,
},
YouTube: {
icon: ,
href: social.YouTube,
community: true,
},
Support: {
icon: ,
href: '/support',
community: false,
},
})
export const SocialIcons = () => {
const { spectrum } = useTheme()
const list = socialList(spectrum)
return Object.keys(list).map((item) => (
{list[item].icon}
))
}