import { IconUser, IconBox, IconCubeSend, IconUsersGroup, IconUserCog } 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"
}

const modules: ModulesType = {
	[ModuleNames.CLIENTS]: { info: { label: "Клиенты", key: "clients", icon: <IconUser /> } },
	[ModuleNames.SERVICES_AND_PRODUCTS]: { info: { label: "Товары и услуги", key: "servicesAndProducts", icon: <IconBox /> } },
	[ModuleNames.SHIPMENT]: { info: { label: "Отгрузка", key: "shipment", icon: <IconCubeSend /> } },
	[ModuleNames.EMPLOYEES]: { info: { label: "Сотрудники", key: "employees", icon: <IconUsersGroup /> } },
	[ModuleNames.MANAGERS]: { info: { label: "Менеджер", key: "managers", icon: <IconUserCog /> } }
};

export const MODULES = connectModules(modules);