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

export function getNavItem (user, dispatch) {
    return (
        [
            {
                itemKey: 'data',
                text: '数据',
                icon: <IconCode />,
                items: [
                    {
                        itemKey: 'dataMonitoring',
                        text: '数据监控',
                        icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconsjjiankong"></iconpark-icon>,
                        to: '/data/dataMonitoring/dataQuery',
                        items: [{
                            itemKey: 'dataQuery', to: '/data/dataMonitoring/dataQuery', text: '数据查询'
                        }]
                    }, {
                        itemKey: 'dataAnalysis',
                        text: '数据分析',
                        icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconsjfenxi"></iconpark-icon>,
                        to: '/data/dataAnalysis/dataComparison',
                        items: [{
                            itemKey: 'dataComparison', to: '/data/dataAnalysis/dataComparison', text: '数据对比'
                        },{
                            itemKey: 'dataAssociation', to: '/data/dataAnalysis/dataAssociation', text: '数据关联'
                        },{
                            itemKey: 'notebook', to: '/data/dataAnalysis/notebook', text: 'notebook'
                        }]
                    },
                ]
            },
        ]
    );
}