Files
Rasadyar_FrontEnd/src/utils/getBarSquareItems.js

41 lines
1.1 KiB
JavaScript
Raw Normal View History

2026-01-18 14:32:49 +03:30
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 [];
}
};