import React, { useState } from 'react'
import classnames from 'classnames'
import FeatherIcon from 'feather-icons-react'
import { Accordion } from '../Accordion'
import KnowledgeBaseIcon from '../../assets/Socials/knowledge-base.svg'
import DocsIcon from '../../assets/Socials/docs.svg'
import GovForumIcon from '../../assets/Socials/gov-forum.svg'
import TreasuryIcon from '../../assets/Socials/treasury.svg'
import MediumLogo from '../../assets/Socials/medium-logo.svg'
import DiscordLogo from '../../assets/Socials/discord-logo.svg'
import TwitterLogo from '../../assets/Socials/twitter-logo.svg'
import TelegramLogo from '../../assets/Socials/telegram-logo.svg'
import { i18nTranslate } from 'src/types'
const sharedClasses =
'relative leading-none w-full flex justify-start items-center py-2 px-0 mb-1 ml-0 trans outline-none focus:outline-none active:outline-none h-10'
const headerClasses = 'text-xs font-bold hover:text-gradient-magenta'
const childClasses = 'text-xs opacity-70 hover:text-gradient-magenta'
const socialsLinkData = [
{
langKey: 'ecosystem',
headerLabel: 'ecosystem',
childLinks: [
{
href: 'https://vote.pooltogether.com',
langKey: 'vote',
label: 'Vote',
icon: (
)
},
{
href: 'https://tools.pooltogether.com/',
langKey: 'toolsSite',
label: 'Tools',
icon: (
)
},
{
href: 'https://docs.pooltogether.com',
langKey: 'knowledgeBase',
label: 'Knowledge Base',
icon:
},
{
href: 'https://v4.docs.pooltogether.com/',
langKey: 'documentation',
label: 'Documentation',
icon:
},
{
href: 'https://gov.pooltogether.com/',
langKey: 'governanceForum',
label: 'Governance forum',
icon:
},
{
href: 'https://info.pooltogether.com/',
langKey: 'treasury',
label: 'Treasury',
icon:
}
]
},
{
langKey: 'socials',
headerLabel: 'socials',
childLinks: [
{
href: 'https://twitter.com/PoolTogether_',
label: 'Twitter',
icon:
},
{
href: 'https://t.me/PoolTogetherTelegram',
label: 'Telegram',
icon:
},
{
href: 'https://pooltogether.com/discord/',
label: 'Discord',
icon:
},
{
href: 'https://medium.com/pooltogether',
label: 'Medium',
icon:
}
]
}
]
export const SocialLinks: React.FC<{ t: i18nTranslate }> = (props) => {
const { t } = props
if (!t) {
console.error(' requires the prop t (i18n trans method)')
}
const [expanded, setExpanded] = useState()
return (
<>
{socialsLinkData.map((linkData, index) => {
return (
)
})}
>
)
}
const SocialLinkSet = (props) => {
const { linkData } = props
const content = linkData.childLinks.map((childLink, index) => {
return
})
return {content}
}
const SocialLinkHeader = (props) => {
const { t } = props
return (
{t(props.linkData.langKey, props.linkData.headerLabel)}
}
/>
)
}
const SocialLinkChild = (props) => {
const { t, childLink } = props
const { langKey, label, icon, href, target } = childLink
return (
)
}
SocialLinkChild.defaultProps = {
target: '_blank'
}