2
2
mirror of https://github.com/Thream/website.git synced 2024-07-21 09:28:32 +02:00
website/components/Footer/Footer.tsx
Divlo a0fa66e8f5
feat: design applications and first api calls
Co-authored-by: Walid <87608619+WalidKorchi@users.noreply.github.com>
2021-10-24 06:09:43 +02:00

32 lines
926 B
TypeScript

import Link from 'next/link'
import useTranslation from 'next-translate/useTranslation'
import { API_VERSION } from '../../utils/api'
import { VersionLink } from './VersionLink'
export interface FooterProps {
version: string
}
export const Footer: React.FC<FooterProps> = (props) => {
const { t } = useTranslation()
const { version } = props
return (
<footer className='bg-white flex flex-col items-center justify-center py-6 text-lg border-t-2 border-gray-600 dark:border-gray-400 dark:bg-black'>
<p>
<Link href='/'>
<a className='hover:underline text-green-800 dark:text-green-400'>
Thream
</a>
</Link>{' '}
| {t('common:all-rights-reserved')}
</p>
<p className='mt-1'>
<VersionLink repository='website' version={version} /> |{' '}
<VersionLink repository='api' version={API_VERSION} />
</p>
</footer>
)
}