import { useTranslations } from 'next-intl' import Link from 'next/link' import { BRIDGE_PATH, BUILD_ON_URL, DISCORD_URL, SYNAPSE_DOCS_URL, FORUM_URL, GITHUB_URL, MIRROR_URL, POOLS_PATH, PRIVACY_POLICY_PATH, STAKE_PATH, SWAP_PATH, TELEGRAM_URL, TERMS_OF_SERVICE_PATH, TWITTER_URL, JOBS_URL, } from '@/constants/urls' import { SynapseTitleLogo } from '.' enum FooterType { PATH = 'path', URL = 'url', } interface FooterDataProps { text: string type: string | null url: string | null } const functionsList: FooterDataProps[] = [ { text: 'Functions', type: null, url: null, }, { text: 'Swap', type: FooterType.PATH, url: SWAP_PATH, }, { text: 'Bridge', type: FooterType.PATH, url: BRIDGE_PATH, }, { text: 'Pools', type: FooterType.PATH, url: POOLS_PATH, }, { text: 'Stake', type: FooterType.PATH, url: STAKE_PATH, }, ] const developersList: FooterDataProps[] = [ { text: 'Developers', type: null, url: null, }, { text: 'Careers', type: FooterType.URL, url: JOBS_URL, }, { text: 'Documentation', type: FooterType.URL, url: SYNAPSE_DOCS_URL, }, { text: 'GitHub', type: FooterType.URL, url: GITHUB_URL, }, { text: 'Blog', type: FooterType.URL, url: MIRROR_URL, }, ] const productsList: FooterDataProps[] = [ { text: 'Products', type: null, url: null, }, { text: 'Synapse', type: FooterType.URL, url: SYNAPSE_DOCS_URL, }, { text: 'Hypercall', type: FooterType.URL, url: 'https://hypercall.xyz/', }, { text: 'Cortex', type: FooterType.URL, url: 'https://cortexprotocol.com/', }, ] const supportList: FooterDataProps[] = [ { text: 'Support', type: null, url: null, }, { text: 'Discord', type: FooterType.URL, url: DISCORD_URL, }, { text: 'Twitter', type: FooterType.URL, url: TWITTER_URL, }, { text: 'Forum', type: FooterType.URL, url: FORUM_URL, }, { text: 'Telegram', type: 'url', url: TELEGRAM_URL, }, ] export function PageFooter() { const t = useTranslations('Nav') return ( ) } function FooterBlock({ elements }: { elements: FooterDataProps[] }) { return (