import React from 'react';
import { IconCode } from '@douyinfe/semi-icons';
import { Badge } from "@douyinfe/semi-ui";

export function getNavItem (user, dispatch) {
    return (
        [
            {
                itemKey: 'example',
                text: <Badge count={5}  type='danger' >举个栗子</Badge>,
                icon: <IconCode />,
                items: [
                    {
                        itemKey: 'e1',
                        text:'举个棒子1',
                        icon: <IconCode />,
                        to: '/example/e1/c1',
                        items: [{
                            itemKey: 'c1', to: '/example/e1/c1', text: '举个锤子1'
                        }]
                    }, {
                        itemKey: 'e2',
                        text: '举个棒子2',
                        icon: <IconCode />,
                        to: '/example/e2/c2',
                        items: [{
                            itemKey: 'c2', to: '/example/e2/c2', text: '举个锤子2'
                        }]
                    },
                ]
            },
        ]
    );
}