2
2
mirror of https://github.com/Thream/website.git synced 2024-07-21 09:28:32 +02:00
website/components/Footer/Footer.tsx

33 lines
924 B
TypeScript
Raw Normal View History

import Link from "next/link"
import useTranslation from "next-translate/useTranslation"
2021-10-24 05:48:06 +02:00
import { API_VERSION } from "../../tools/api"
import { VersionLink } from "./VersionLink"
export interface FooterProps {
version: string
}
export const Footer: React.FC<FooterProps> = (props) => {
2021-10-24 05:48:06 +02:00
const { t } = useTranslation()
const { version } = props
2021-10-24 05:48:06 +02:00
return (
<footer className="flex flex-col items-center justify-center border-t-2 border-gray-600 bg-white py-6 text-lg dark:border-gray-400 dark:bg-black">
2021-10-24 05:48:06 +02:00
<p>
2022-12-13 11:38:07 +01:00
<Link
href="/"
className="text-green-800 hover:underline dark:text-green-400"
2022-12-13 11:38:07 +01:00
>
Thream
</Link>{" "}
| {t("common:all-rights-reserved")}
2021-10-24 05:48:06 +02:00
</p>
<p className="mt-1">
<VersionLink repository="website" version={version} /> |{" "}
<VersionLink repository="api" version={API_VERSION} />
</p>
2021-10-24 05:48:06 +02:00
</footer>
)
}