// import clsx from 'clsx' import { memo } from 'react'; import { useAppSelector } from '../../app/store'; import Login from './Login'; const TextMessage = ({ text, animate = '' }: { text: string; animate?: string }) => (

{text}

); type Props = { needLogin?: boolean } const Index = ({ needLogin = false }: Props) => { const { name, logo } = useAppSelector(store => store.server); return (
logo
{name} {needLogin && <>
}
); }; export default memo(Index);