41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
|
|
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 PeopleIcon from "@mui/icons-material/People";
|
|||
|
|
import CompareArrowsIcon from "@mui/icons-material/CompareArrows";
|
|||
|
|
|
|||
|
|
export const getBarSquareItems = (role) => {
|
|||
|
|
switch (role) {
|
|||
|
|
case "BarSquareProvinceJahad":
|
|||
|
|
return [
|
|||
|
|
{
|
|||
|
|
text: "دسترسی ها",
|
|||
|
|
icon: <CorporateFareIcon />,
|
|||
|
|
route: ROUTES.ROUTE_PROVINCE_JAHAD_UNIONS,
|
|||
|
|
disabled: true,
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
text: "بنک دارها",
|
|||
|
|
icon: <ApartmentIcon />,
|
|||
|
|
route: ROUTES.ROUTE_PROVINCE_JAHAD_COOPERATIVES,
|
|||
|
|
disabled: true,
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
text: "تراکنش ها",
|
|||
|
|
icon: <CompareArrowsIcon />,
|
|||
|
|
route: ROUTES.ROUTE_BAR_SQUARE_TRANSACTIONS,
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
text: "صنوف",
|
|||
|
|
icon: <PeopleIcon />,
|
|||
|
|
route: ROUTES.ROUTE_PROVINCE_JAHAD_USERS,
|
|||
|
|
disabled: true,
|
|||
|
|
},
|
|||
|
|
];
|
|||
|
|
|
|||
|
|
default:
|
|||
|
|
return [];
|
|||
|
|
}
|
|||
|
|
};
|