// third-party
import { FormattedMessage } from 'react-intl';

// assets
import {
  BorderOutlined,
  BoxPlotOutlined,
  ChromeOutlined,
  DeploymentUnitOutlined,
  GatewayOutlined,
  MenuUnfoldOutlined,
  QuestionOutlined,
  SmileOutlined,
  StopOutlined,
  DashboardOutlined,
  AppstoreOutlined,
  FileTextOutlined,
  ShoppingCartOutlined,
  CarOutlined,
  BookOutlined,
  EnvironmentOutlined,
  UserOutlined,
  FileDoneOutlined,
  FileSearchOutlined
} from '@ant-design/icons';

// icons
const icons = {
  ChromeOutlined,
  MenuUnfoldOutlined,
  BoxPlotOutlined,
  StopOutlined,
  BorderOutlined,
  SmileOutlined,
  GatewayOutlined,
  QuestionOutlined,
  DeploymentUnitOutlined,
  DashboardOutlined,
  AppstoreOutlined,
  FileTextOutlined,
  ShoppingCartOutlined,
  CarOutlined,
  BookOutlined,
  EnvironmentOutlined,
  UserOutlined,
  FileDoneOutlined,
  FileSearchOutlined
};

// ==============================|| MENU ITEMS - SUPPORT ||============================== //

const other = {
  id: 'other',
  title: <FormattedMessage id="others" />,
  type: 'group',
  children: [
    // commented old items
    // {
    //   id: 'sample-page',
    //   title: <FormattedMessage id="sample-page" />,
    //   type: 'item',
    //   url: '/sample-page',
    //   icon: icons.ChromeOutlined
    // },
    // {
    //   id: 'documentation',
    //   title: <FormattedMessage id="documentation" />,
    //   type: 'item',
    //   url: 'https://links.codedthemes.com/BQFrl',
    //   icon: icons.QuestionOutlined,
    //   external: true,
    //   target: true,
    //   chip: {
    //     label: 'gitbook',
    //     color: 'secondary',
    //     size: 'small'
    //   }
    // },
    // {
    //   id: 'roadmap',
    //   title: <FormattedMessage id="roadmap" />,
    //   type: 'item',
    //   url: 'https://links.codedthemes.com/RXnKQ',
    //   icon: icons.DeploymentUnitOutlined,
    //   external: true,
    //   target: true
    // },
    {
      id: 'dashboard',
      title: 'Dashboard',
      type: 'item',
      url: '/dashboard',
      icon: icons.DashboardOutlined
    },
    {
      id: 'orders',
      title: 'Orders',
      type: 'item',
      url: '/orders',
      icon: icons.ShoppingCartOutlined
    },
    {
      id: 'deliveries',
      title: 'Deliveries',
      type: 'item',
      url: '/deliveries',
      icon: icons.CarOutlined
    },
    {
      id: 'catalogue',
      title: 'Catalogue',
      type: 'item',
      url: '/catalogue',
      icon: icons.BookOutlined
    },
    {
      id: 'products',
      title: 'Products',
      type: 'item',
      url: '/products',
      icon: icons.BoxPlotOutlined
    },
    {
      id: 'locations',
      title: 'Locations',
      type: 'item',
      url: '/locations',
      icon: icons.EnvironmentOutlined
    },
    {
      id: 'customers',
      title: 'Customers',
      type: 'item',
      url: '/customers',
      icon: icons.UserOutlined
    },

    {
      id: 'reports',
      title: 'Reports',
      type: 'collapse',
      icon: icons.FileTextOutlined,
      children: [
        {
          id: 'statements',
          title: 'Statements',
          type: 'item',
          url: '/statements',
          icon: icons.UserOutlined
        },
        {
          id: 'orderdetails',
          title: 'Order Details',
          type: 'item',
          url: '/orderdetails',
          icon: icons.UserOutlined
        }
      ]
    }
  ]
};

export default other;
