67 lines
1.6 KiB
TypeScript
67 lines
1.6 KiB
TypeScript
import {
|
|
IconUser,
|
|
IconBox,
|
|
IconCubeSend,
|
|
IconUsersGroup,
|
|
IconUserCog,
|
|
IconMessage,
|
|
} from "@tabler/icons-react";
|
|
import ModulesType from "./types.tsx";
|
|
import connectModules from "./connectModules.tsx";
|
|
|
|
export enum ModuleNames {
|
|
CLIENTS = "clients",
|
|
SERVICES_AND_PRODUCTS = "servicesAndProducts",
|
|
SHIPMENT = "shipment",
|
|
EMPLOYEES = "employees",
|
|
MANAGERS = "managers",
|
|
CHAT = "chat",
|
|
}
|
|
|
|
const modules: ModulesType = {
|
|
[ModuleNames.CLIENTS]: {
|
|
info: {
|
|
label: "Клиенты",
|
|
key: ModuleNames.CLIENTS,
|
|
icon: <IconUser />,
|
|
}
|
|
},
|
|
[ModuleNames.SERVICES_AND_PRODUCTS]: {
|
|
info: {
|
|
label: "Товары и услуги",
|
|
key: ModuleNames.SERVICES_AND_PRODUCTS,
|
|
icon: <IconBox />,
|
|
}
|
|
},
|
|
[ModuleNames.SHIPMENT]: {
|
|
info: {
|
|
label: "Отгрузка",
|
|
key: ModuleNames.SHIPMENT,
|
|
icon: <IconCubeSend />,
|
|
}
|
|
},
|
|
[ModuleNames.EMPLOYEES]: {
|
|
info: {
|
|
label: "Сотрудники",
|
|
key: ModuleNames.EMPLOYEES,
|
|
icon: <IconUsersGroup />,
|
|
}
|
|
},
|
|
[ModuleNames.MANAGERS]: {
|
|
info: {
|
|
label: "Менеджер",
|
|
key: ModuleNames.MANAGERS,
|
|
icon: <IconUserCog />,
|
|
}
|
|
},
|
|
[ModuleNames.CHAT]: {
|
|
info: {
|
|
label: "Чат",
|
|
key: ModuleNames.CHAT,
|
|
icon: <IconMessage />,
|
|
}
|
|
},
|
|
};
|
|
|
|
export const MODULES = connectModules(modules);
|