import React from 'react'; import { useTranslation } from 'react-i18next'; import { useSelector } from 'react-redux'; import { makeStyles } from 'tss-react/mui'; import { IReduxState } from '../../../app/types'; import { IconUsers } from '../../../base/icons/svg'; import Label from '../../../base/label/components/web/Label'; // eslint-disable-next-line lines-around-comment // @ts-ignore import { Tooltip } from '../../../base/tooltip'; import { getVisitorsShortText, iAmVisitor } from '../../functions'; const useStyles = makeStyles()(theme => { return { label: { backgroundColor: theme.palette.warning02, color: theme.palette.uiBackground } }; }); const VisitorsCountLabel = () => { const { classes: styles, theme } = useStyles(); const visitorsMode = useSelector((state: IReduxState) => iAmVisitor(state)); const visitorsCount = useSelector((state: IReduxState) => state['features/visitors'].count || 0); const { t } = useTranslation(); return visitorsMode && ( ); }; export default VisitorsCountLabel;