import { useMemo } from 'react' import Link from 'next/link' import useTranslation from 'next-translate/useTranslation' export interface FooterProps { version: string } export const Footer: React.FC = (props) => { const { t } = useTranslation() const { version } = props const versionLink = useMemo(() => { if (version !== '0.0.0-development') { return `https://github.com/Divlo/Divlo/releases/tag/v${version}` } return 'https://github.com/Divlo/Divlo/tree/develop' }, [version]) return ( ) }