import { AlertOutlined, AlignLeftOutlined, ApiOutlined, BarChartOutlined, BugOutlined, DashboardFilled, DeploymentUnitOutlined, LineChartOutlined, MenuOutlined, SettingOutlined, } from '@ant-design/icons'; import { MenuProps, Space, Typography } from 'antd'; import ROUTES from 'constants/routes'; import { Tags } from './styles'; type MenuItem = Required['items'][number]; export const createLabelWithTags = ( label: string, tags: string[], ): JSX.Element => (
{label}
{tags.map((tag) => ( {tag} ))}
); const menus: SidebarMenu[] = [ { key: ROUTES.APPLICATION, label: 'Services', icon: , }, { key: ROUTES.TRACE, label: 'Traces', icon: , // children: [ // { // key: ROUTES.TRACE, // label: 'Traces', // }, // TODO: uncomment when will be ready explorer // { // key: ROUTES.TRACES_EXPLORER, // label: "Explorer", // }, // ], }, { key: ROUTES.LOGS, label: 'Logs', icon: , // children: [ // { // key: ROUTES.LOGS, // label: 'Search', // }, // TODO: uncomment when will be ready explorer // { // key: ROUTES.LOGS_EXPLORER, // label: 'Views', // }, // ], }, { key: ROUTES.ALL_DASHBOARD, label: 'Dashboards', icon: , }, { key: ROUTES.LIST_ALL_ALERT, label: 'Alerts', icon: , }, { key: ROUTES.ALL_ERROR, label: 'Exceptions', icon: , }, { key: ROUTES.SERVICE_MAP, label: 'Service Map', icon: , }, { key: ROUTES.USAGE_EXPLORER, label: 'Usage Explorer', icon: , }, { key: ROUTES.SETTINGS, label: 'Settings', icon: , }, { key: ROUTES.INSTRUMENTATION, label: 'Get Started', icon: , }, ]; type SidebarMenu = MenuItem & { tags?: string[]; }; export default menus;