import { ModuleNames } from "./modules.tsx";
import ClientTab from "./cardModules/cardEditorTabs/ClientTab/ClientTab.tsx";
import ModulesType from "./types.tsx";
import ProductAndServiceTab from "./cardModules/cardEditorTabs/ProductAndServiceTab/ProductAndServiceTab.tsx";
import EmployeesTab from "./cardModules/cardEditorTabs/EmployeesTab/EmployeesTab.tsx";
import ShippingTab from "./cardModules/cardEditorTabs/ShippingTab/ShippingTab.tsx";
import ManagerTab from "./cardModules/cardEditorTabs/ManagersTab/ManagersTab.tsx";

const connectModules = (modules: ModulesType) => {

    modules[ModuleNames.CLIENTS].tab = <ClientTab />;
    modules[ModuleNames.SERVICES_AND_PRODUCTS].tab = <ProductAndServiceTab />;
    modules[ModuleNames.EMPLOYEES].tab = <EmployeesTab />;
    modules[ModuleNames.SHIPMENT].tab = <ShippingTab />;
    modules[ModuleNames.MANAGERS].tab = <ManagerTab />;

    return modules;
};

export default connectModules;
