Files
Rasadyar_FrontEnd/src/utils/getBarSquareItems.js

41 lines
1.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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 [];
}
};