openreplay/frontend/app/components/shared/Copyright.tsx
Andrey Babushkin fd5c0c9747
Add lokalisation (#3092)
* applied eslint

* add locales and lint the project

* removed error boundary

* updated locales

* fix min files

* fix locales
2025-03-06 17:43:15 +01:00

32 lines
857 B
TypeScript

import React from 'react';
import { useTranslation } from 'react-i18next';
const Copyright = React.memo(() => {
const currentYear = new Date().getFullYear();
const { t } = useTranslation();
return (
<footer className="fixed bottom-0 m-auto text-center mb-6 text-gray-500">
{`© ${currentYear} ${t('OpenReplay. All rights reserved')}. `}
<a
className="underline hover:text-gray-700"
href="https://openreplay.com/privacy.html"
target="_blank"
rel="noopener noreferrer"
>
{t('Privacy')}
</a>
&nbsp;{t('and')}&nbsp;
<a
className="underline hover:text-gray-700"
href="https://openreplay.com/terms.html"
target="_blank"
rel="noopener noreferrer"
>
{t('Terms')}
</a>
.
</footer>
);
});
export default Copyright;