import { useState } from 'react'; import { useIntl } from 'react-intl'; import { Icon, Text, Icons } from 'react-basics'; import classNames from 'classnames'; import { Dashboard, Logo, Profile, User, Users, Clock, Globe } from 'components/icons'; import ThemeButton from '../buttons/ThemeButton'; import LanguageButton from 'components/buttons/LanguageButton'; import LogoutButton from 'components/buttons/LogoutButton'; import { labels } from 'components/messages'; import NavGroup from './NavGroup'; import styles from './NavBar.module.css'; export default function NavBar() { const { formatMessage } = useIntl(); const [minimized, setMinimized] = useState(false); const tooltipPosition = minimized ? 'right' : 'top'; const analytics = [ { label: formatMessage(labels.dashboard), url: '/dashboard', icon: }, { label: formatMessage(labels.realtime), url: '/realtime', icon: }, { label: formatMessage(labels.queries), url: '/queries', icon: }, ]; const settings = [ { label: formatMessage(labels.websites), url: '/settings/websites', icon: }, { label: formatMessage(labels.users), url: '/settings/users', icon: }, { label: formatMessage(labels.teams), url: '/settings/teams', icon: }, { label: formatMessage(labels.profile), url: '/settings/profile', icon: }, ]; const handleMinimize = () => setMinimized(state => !state); return (
umami
); }