import { siteConfig } from '@/lib/config'
import { useState } from 'react'
/**
* 社交联系方式按钮组 可折叠的组件
* @returns {JSX.Element}
* @constructor
*/
const SocialButton = () => {
const [show, setShow] = useState(false)
const toggleShow = () => {
setShow(!show)
}
return (
{!show && (
)}
{show && (
<>
{siteConfig('CONTACT_GITHUB') && (
)}
{siteConfig('CONTACT_TWITTER') && (
)}
{siteConfig('CONTACT_TELEGRAM') && (
)}
{siteConfig('CONTACT_LINKEDIN') && (
)}
{siteConfig('CONTACT_WEIBO') && (
)}
{siteConfig('CONTACT_INSTAGRAM') && (
)}
{siteConfig('CONTACT_EMAIL') && (
)}
{JSON.parse(siteConfig('ENABLE_RSS')) && (
)}
{siteConfig('CONTACT_BILIBILI') && (
)}
{siteConfig('CONTACT_YOUTUBE') && (
)}
>
)}
)
}
export default SocialButton