import type * as React from 'react' import cs from 'classnames' import * as config from '@/lib/config' import styles from './PageSocial.module.css' interface SocialLink { name: string title: string icon: React.ReactNode href?: string } const socialLinks: SocialLink[] = [ config.twitter && { name: 'twitter', href: `https://twitter.com/${config.twitter}`, title: `Twitter @${config.twitter}`, icon: ( ) }, config.github && { name: 'github', href: `https://github.com/${config.github}`, title: `GitHub @${config.github}`, icon: ( ) }, config.linkedin && { name: 'linkedin', href: `https://www.linkedin.com/in/${config.linkedin}`, title: `LinkedIn ${config.author}`, icon: ( ) }, config.newsletter && { name: 'newsletter', href: `${config.newsletter}`, title: `Newsletter ${config.author}`, icon: ( ) }, config.youtube && { name: 'youtube', href: `https://www.youtube.com/${config.youtube}`, title: `YouTube ${config.youtube}`, icon: ( ) } ].filter(Boolean) export function PageSocial() { return (