openreplay/frontend/app/layout/Logo.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

27 lines
635 B
TypeScript

import React from 'react';
import { sessions, withSiteId } from 'App/routes';
import AnimatedSVG from 'Shared/AnimatedSVG';
import { ICONS } from 'Shared/AnimatedSVG/AnimatedSVG';
import { NavLink } from 'react-router-dom';
import { Button } from 'antd';
const SESSIONS_PATH = sessions();
interface Props {
siteId: any;
}
function Logo(props: Props) {
return (
<NavLink
to={withSiteId(SESSIONS_PATH, props.siteId)}
className="flex items-center"
>
<Button type="link" className="p-0">
<AnimatedSVG name={ICONS.LOGO_FULL} size="120" />
</Button>
</NavLink>
);
}
export default Logo;