import React from 'react';
import { Link } from 'react-router-dom';
import { Menu } from 'antd';
import { SettingOutlined } from '@ant-design/icons';
import { Func } from '$utils';
import { push } from 'react-router-redux';
const SubMenu = Menu.SubMenu;
export function getNavItem(user, dispatch) {
// if (!Func.isAuthorized("ORG_MANAGE")) {
// return null
// }
// // console.log(!Func.isAuthorized("ORG_MANAGE"));
// if (user.type != 1 && user.type != 2 && user.type != 3) {
// dispatch(push('/fillion/infor'));
// return null
// }
return (