| undefined) => (
+
+
toggleSection(typeKey)}
+ >
+
+ {expandedSections[typeKey] ? '▼' : '▶'}
+
+
{title}
+
+
+ {expandedSections[typeKey] && (
+
+
+
+ {showAddForm && (
+
+ )}
+
+
+
+
+ | ID |
+ Name |
+ Description |
+ Actions |
+
+
+
+ {types.map((type) => (
+
+ | {type.id} |
+ {type.name} |
+ {type.description} |
+
+
+
+ |
+
+ ))}
+
+
+
+ )}
+
+ );
+
+ return (
+
+ {renderTable(
+ 'Contract Types',
+ contractTypes,
+ handleAddContractType,
+ newContractType,
+ setNewContractType,
+ showAddForms.contractType,
+ 'contractType',
+ handleAddContractType
+ )}
+
+ {renderTable(
+ 'Service Types',
+ serviceTypes,
+ handleAddServiceType,
+ newServiceType,
+ setNewServiceType,
+ showAddForms.serviceType,
+ 'serviceType',
+ handleAddServiceType
+ )}
+
+ {renderTable(
+ 'Cargo Types',
+ cargoTypes,
+ handleAddCargoType,
+ newCargoType,
+ setNewCargoType,
+ showAddForms.cargoType,
+ 'cargoType',
+ handleAddCargoType
+ )}
+
+ );
+};
\ No newline at end of file
diff --git a/apps/edr-freight-web/backoffice/src/pages/ruleEngine/RuleEngine.tsx b/apps/edr-freight-web/backoffice/src/pages/ruleEngine/RuleEngine.tsx
new file mode 100644
index 000000000..96493948d
--- /dev/null
+++ b/apps/edr-freight-web/backoffice/src/pages/ruleEngine/RuleEngine.tsx
@@ -0,0 +1,14 @@
+import { ContractTypePage, } from "@/components/ruleEngine/ContractType";
+
+export const RuleEnginePage = () => {
+ return
+
+ Rule Engine Page
+
+
+
+
+
+
+
;
+};
\ No newline at end of file