import dynamic from 'next/dynamic'; import { Button, Flex, Link } from '@chakra-ui/react'; import { If } from '~/components'; import { useConfig, useColorValue } from '~/context'; import { useStrf } from '~/hooks'; import { FooterButton } from './button'; const CodeIcon = dynamic(() => import('@meronex/icons/fi').then(i => i.FiCode)); const ExtIcon = dynamic(() => import('@meronex/icons/go').then(i => i.GoLinkExternal)); export const Footer = () => { const { web, content, primary_asn } = useConfig(); const footerBg = useColorValue('blackAlpha.50', 'whiteAlpha.100'); const footerColor = useColorValue('black', 'white'); const extUrl = useStrf(web.external_link.url, { primary_asn }) ?? '/'; return ( } /> ); };