import { FC } from 'react' import { Routes, DOMAIN_NAME } from '@app/configs' import { strings } from '@app-strings' import { Link } from './link' import { FixedCopyRight } from './fixed-copy-right' import { GithubBadge } from '../badges' interface NavLinks { className?: string filterType?: string blog?: boolean // if coming from the blog sub domain } const baseRoutes = [...Routes].reverse() const NavLinks: FC = ({ className, filterType, blog }) => { const routes = baseRoutes.filter(({ type }: any) => type === filterType) return ( <> {routes.map(({ href: link, name }: any) => { let href = link if (blog) { // target home website if (link[0] === '/') { href = `${DOMAIN_NAME}${link}` } } return (
  • {name}
  • ) })} ) } const SectionLinks = ({ title, blog }: { title: string; blog: boolean }) => { return (

    {title}

    ) } const Footer = ({ sticky, blog }: { sticky?: boolean; blog?: boolean }) => { return ( ) } export { Footer }