openreplay/frontend/app/layout/Logo.tsx
Shekar Siri 8d1bf1a401
change(ui): module settings and nav changes (#1443)
* change(ui): route refactor

* change(ui): new navigation

* change(ui): new navigation - icons and other fixes

* change(ui): modules

* change(ui): moduels and nav fixes
2023-08-09 12:07:57 +05:30

26 lines
No EOL
626 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 { Tooltip } from 'antd';
const SESSIONS_PATH = sessions();
interface Props {
siteId: any;
}
function Logo(props: Props) {
return (
<NavLink to={withSiteId(SESSIONS_PATH, props.siteId)}>
<Tooltip title={`v${window.env.VERSION}`}>
<div>
<AnimatedSVG name={ICONS.LOGO_SMALL} size='30' />
</div>
</Tooltip>
</NavLink>
);
}
export default Logo;