import React from "react";
import * as ROUTES from "../routes/routes";
import CorporateFareIcon from "@mui/icons-material/CorporateFare";
import ApartmentIcon from "@mui/icons-material/Apartment";
import ListAltIcon from "@mui/icons-material/ListAlt";
import PeopleIcon from "@mui/icons-material/People";
import Face5Icon from "@mui/icons-material/Face5";
import BlurOnIcon from "@mui/icons-material/BlurOn";
import CompareArrowsIcon from "@mui/icons-material/CompareArrows";

export const getLiveStockItems = (role) => {
  switch (role) {
    case "LiveStockProvinceJahad":
      return [
        {
          text: "اتحادیه ها",
          icon: <CorporateFareIcon />,
          route: ROUTES.ROUTE_PROVINCE_JAHAD_UNIONS,
        },
        {
          text: "تعاونی ها",
          icon: <ApartmentIcon />,
          route: ROUTES.ROUTE_PROVINCE_JAHAD_COOPERATIVES,
        },
        {
          text: "دامداران",
          icon: <Face5Icon />,
          route: ROUTES.ROUTE_PROVINCE_JAHAD_RANCHERS,
        },
        {
          text: "گله ها",
          icon: <ListAltIcon />,
          route: ROUTES.ROUTE_PROVINCE_JAHAD_HERDS,
        },
        {
          text: "محصولات",
          icon: <BlurOnIcon />,
          route: ROUTES.ROUTE_PROVINCE_JAHAD_PRODUCT_DISTRIBUTION,
        },
        {
          text: "تراکنش ها",
          icon: <CompareArrowsIcon />,
          route: ROUTES.ROUTE_PROVINCE_JAHAD_PRODUCT_TRANSACTIONS,
        },
        {
          text: "کاربران",
          icon: <PeopleIcon />,
          route: ROUTES.ROUTE_PROVINCE_JAHAD_USERS,
        },
      ];
    case "Union":
      return [
        {
          text: "تعاونی ها",
          icon: <ApartmentIcon />,
          route: ROUTES.ROUTE_UNION_COOPERATIVES,
        },
        {
          text: "دامداران",
          icon: <Face5Icon />,
          route: ROUTES.ROUTE_UNION_RANCHERS,
        },
        {
          text: "گله ها",
          icon: <ListAltIcon />,
          route: ROUTES.ROUTE_UNION_HERDS,
        },
        {
          text: "محصولات",
          icon: <BlurOnIcon />,
          route: ROUTES.ROUTE_UNION_PRODUCT_DISTRIBUTION,
        },
        {
          text: "تراکنش ها",
          icon: <CompareArrowsIcon />,
          route: ROUTES.ROUTE_UNION_PRODUCT_TRANSACTIONS,
        },
        {
          text: "کاربران",
          icon: <PeopleIcon />,
          route: ROUTES.ROUTE_UNION_USERS,
          disabled: true,
        },
      ];
    case "Cooperative":
      return [
        {
          text: "دامداران",
          icon: <Face5Icon />,
          route: ROUTES.ROUTE_COOPERATIVE_RANCHERS,
          disabled: true,
          disabledText: "شما مجوز دسترسی به این بخش را ندارید!",
        },
        {
          text: "گله ها",
          icon: <ListAltIcon />,
          route: ROUTES.ROUTE_COOPERATIVE_HERDS,
          disabled: true,
          disabledText: "شما مجوز دسترسی به این بخش را ندارید!",
        },
        {
          text: "محصولات",
          icon: <BlurOnIcon />,
          route: ROUTES.ROUTE_COOPERATIVE_PRODUCT_DISTRIBUTION,
        },
        {
          text: "تراکنش ها",
          icon: <CompareArrowsIcon />,
          route: ROUTES.ROUTE_COOPERATIVE_PRODUCT_TRANSACTIONS,
        },
        {
          text: "کاربران",
          icon: <PeopleIcon />,
          route: ROUTES.ROUTE_COOPERATIVE_USERS,
          disabled: true,
        },
      ];
    default:
      return [];
  }
};
