|
|
@ -1,11 +1,13 @@ |
|
|
import { cn } from "@core/utils/cn.ts"; |
|
|
import { cn } from "@core/utils/cn.ts"; |
|
|
import { Trans } from "react-i18next"; |
|
|
import { Trans, useTranslation } from "react-i18next"; |
|
|
|
|
|
|
|
|
type FooterProps = { |
|
|
type FooterProps = { |
|
|
className?: string; |
|
|
className?: string; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
const Footer = ({ className, ...props }: FooterProps) => { |
|
|
const Footer = ({ className, ...props }: FooterProps) => { |
|
|
|
|
|
const { t } = useTranslation(); |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<footer |
|
|
<footer |
|
|
className={cn( |
|
|
className={cn( |
|
|
@ -15,18 +17,11 @@ const Footer = ({ className, ...props }: FooterProps) => { |
|
|
{...props} |
|
|
{...props} |
|
|
> |
|
|
> |
|
|
<div className="justify-start px-2"> |
|
|
<div className="justify-start px-2"> |
|
|
<Trans |
|
|
<span className="font-semibold text-gray-500/40 dark:text-gray-400/40"> |
|
|
i18nKey="footer.commitSha" |
|
|
{t("footer.commitSha", { |
|
|
components={[ |
|
|
|
|
|
<span |
|
|
|
|
|
key="sha" |
|
|
|
|
|
className="font-semibold text-gray-500/40 dark:text-gray-400/40" |
|
|
|
|
|
/>, |
|
|
|
|
|
]} |
|
|
|
|
|
values={{ |
|
|
|
|
|
sha: String(import.meta.env.VITE_COMMIT_HASH)?.toUpperCase(), |
|
|
sha: String(import.meta.env.VITE_COMMIT_HASH)?.toUpperCase(), |
|
|
}} |
|
|
})} |
|
|
/> |
|
|
</span> |
|
|
</div> |
|
|
</div> |
|
|
<p className="ml-auto mr-auto text-gray-500 dark:text-gray-400"> |
|
|
<p className="ml-auto mr-auto text-gray-500 dark:text-gray-400"> |
|
|
<Trans |
|
|
<Trans |
|
|
|