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

export function getNavItem (user, dispatch) {
   return (
      [
         {
            itemKey: 'equipmentWarehouse', text: '设备仓库', icon: <IconCode />,
            items: [
               { itemKey: 'nvr', to: '/equipmentWarehouse/nvr', text: 'NVR管理' },
               { itemKey: 'camera', to: '/equipmentWarehouse/camera', text: '摄像头管理' },
               { itemKey: 'recycle', to: '/equipmentWarehouse/recycle', text: '回收站' },
            ]
         },
      ]
   );
}