diff --git a/frontend/features/LocationsManagement/LocationsManagementComponent.spec.tsx b/frontend/features/LocationsManagement/LocationsManagementComponent.spec.tsx
new file mode 100644
index 00000000..138b8ebf
--- /dev/null
+++ b/frontend/features/LocationsManagement/LocationsManagementComponent.spec.tsx
@@ -0,0 +1,10 @@
+import React from "react";
+import { describe, it, expect } from "vitest";
+import { render, screen } from "@testing-library/react";
+import { LocationsManagementComponent } from "./LocationsManagementComponent";
+describe("LocationsManagementComponent", () => {
+ it("renders correctly", () => {
+ render();
+ expect(screen.getByText("Locations Management")).toBeDefined();
+ });
+});
diff --git a/frontend/features/LocationsManagement/LocationsManagementComponent.tsx b/frontend/features/LocationsManagement/LocationsManagementComponent.tsx
new file mode 100644
index 00000000..8c07ef3d
--- /dev/null
+++ b/frontend/features/LocationsManagement/LocationsManagementComponent.tsx
@@ -0,0 +1,19 @@
+import React from "react";
+import { useLocationsManagement } from "./useLocationsManagement";
+import { Location } from "./LocationsManagementTypes";
+export const LocationsManagementComponent: React.FC = () => {
+ const { locations } = useLocationsManagement();
+ return (
+
+
Locations Management
+
+ {locations.map((loc: Location) => (
+
+
{loc.name}
+
{loc.address}
+
+ ))}
+
+
+ );
+};
diff --git a/frontend/features/LocationsManagement/LocationsManagementStore.ts b/frontend/features/LocationsManagement/LocationsManagementStore.ts
new file mode 100644
index 00000000..8096fa4b
--- /dev/null
+++ b/frontend/features/LocationsManagement/LocationsManagementStore.ts
@@ -0,0 +1,8 @@
+import { createContext } from "react";
+import { LocationsState, Location } from "./LocationsManagementTypes";
+export interface LocationsStore extends LocationsState {
+ addLocation: (loc: Location) => void;
+}
+export const LocationsManagementContext = createContext<
+ LocationsStore | undefined
+>(undefined);
diff --git a/frontend/features/LocationsManagement/LocationsManagementTypes.ts b/frontend/features/LocationsManagement/LocationsManagementTypes.ts
new file mode 100644
index 00000000..333228ae
--- /dev/null
+++ b/frontend/features/LocationsManagement/LocationsManagementTypes.ts
@@ -0,0 +1,8 @@
+export interface Location {
+ id: string;
+ name: string;
+ address: string;
+}
+export interface LocationsState {
+ locations: Location[];
+}
diff --git a/frontend/features/LocationsManagement/useLocationsManagement.ts b/frontend/features/LocationsManagement/useLocationsManagement.ts
new file mode 100644
index 00000000..9923e4cc
--- /dev/null
+++ b/frontend/features/LocationsManagement/useLocationsManagement.ts
@@ -0,0 +1,7 @@
+import { useState } from "react";
+import { Location } from "./LocationsManagementTypes";
+export const useLocationsManagement = () => {
+ const [locations, setLocations] = useState([]);
+ const addLocation = (loc: Location) => setLocations((prev) => [...prev, loc]);
+ return { locations, addLocation };
+};