Index: frontend/src/Components/Hooks/Hotel/useCreateHotel.js
===================================================================
--- frontend/src/Components/Hooks/Hotel/useCreateHotel.js	(revision e6c2521bc7455763be50cf2e37427887b6efb4b9)
+++ frontend/src/Components/Hooks/Hotel/useCreateHotel.js	(revision e6c2521bc7455763be50cf2e37427887b6efb4b9)
@@ -0,0 +1,51 @@
+import React from "react";
+
+import axios from "../../../axios.js";
+import { useNavigate } from "react-router-dom";
+
+const useCreateHotel = () => {
+
+    const createHotel = async (hotel, edit) => {
+		console.log({hotel})
+		console.log(hotel)
+		console.log("vo createhotel")
+
+		if(!edit)
+		{
+			await axios
+			.post(`/hotel/add`, hotel, {
+				params: {
+					userId: JSON.parse(localStorage.getItem("user")).userId
+				}
+			}) 
+			.then((res) => {
+				//history.push('/hotel');
+			})
+			.catch((err) => {
+				console.log(err);
+			})
+			.finally(() => {
+			});
+		}
+		else
+		{
+			await axios
+			.post(`/hotel/edit`, hotel) 
+			.then((res) => {
+			})
+			.catch((err) => {
+				console.log(err);
+			})
+			.finally(() => {
+			});
+		}
+
+    }
+
+	return {
+		createHotel
+	};
+
+}
+
+export default useCreateHotel;
Index: frontend/src/Components/Hooks/Hotel/useCreateHotelRoom.js
===================================================================
--- frontend/src/Components/Hooks/Hotel/useCreateHotelRoom.js	(revision e6c2521bc7455763be50cf2e37427887b6efb4b9)
+++ frontend/src/Components/Hooks/Hotel/useCreateHotelRoom.js	(revision e6c2521bc7455763be50cf2e37427887b6efb4b9)
@@ -0,0 +1,34 @@
+import React from "react";
+
+import axios from "../../../axios.js";
+import { useNavigate } from "react-router-dom";
+
+const useCreateHotelRoom = (hotelId) => {
+
+    const createHotelRoom = async (hotelRoom) => {
+		console.log({hotelRoom})
+		console.log(hotelRoom)
+        await axios
+	            .post(`/hotel/rooms/add`, hotelRoom, {
+					params: {
+                        userId: localStorage.getItem("userId"),
+                        hotelId: hotelId
+					}
+				}) 
+	            .then((res) => {
+	                //history.push('/hotel');
+	            })
+	            .catch((err) => {
+	                console.log(err);
+	            })
+	            .finally(() => {
+	            });
+    }
+
+	return {
+		createHotelRoom
+	};
+
+}
+
+export default useCreateHotelRoom;
Index: frontend/src/Components/Hooks/Hotel/useCreateRoomAvailability.js
===================================================================
--- frontend/src/Components/Hooks/Hotel/useCreateRoomAvailability.js	(revision e6c2521bc7455763be50cf2e37427887b6efb4b9)
+++ frontend/src/Components/Hooks/Hotel/useCreateRoomAvailability.js	(revision e6c2521bc7455763be50cf2e37427887b6efb4b9)
@@ -0,0 +1,33 @@
+import React from "react";
+
+import axios from "../../../axios.js";
+import { useNavigate } from "react-router-dom";
+
+const useCreateRoomAvailiability = (hotelRoomId) => {
+
+    const createRoomAvailability = async (hotelRoomAvailable, id) => {
+		console.log({hotelRoomAvailable})
+		console.log(hotelRoomAvailable)
+        await axios
+	            .post(`/hotel/rooms/available/${id}/add`, hotelRoomAvailable, {
+					params: {
+                        hotelId: hotelRoomId
+					}
+				}) 
+	            .then((res) => {
+	                //history.push('/hotel');
+	            })
+	            .catch((err) => {
+	                console.log(err);
+	            })
+	            .finally(() => {
+	            });
+    }
+
+	return {
+		createRoomAvailability
+	};
+
+}
+
+export default useCreateRoomAvailiability;
Index: frontend/src/Components/Hooks/Hotel/useEditHotel.js
===================================================================
--- frontend/src/Components/Hooks/Hotel/useEditHotel.js	(revision e6c2521bc7455763be50cf2e37427887b6efb4b9)
+++ frontend/src/Components/Hooks/Hotel/useEditHotel.js	(revision e6c2521bc7455763be50cf2e37427887b6efb4b9)
@@ -0,0 +1,26 @@
+import React from "react";
+import axios from "axios";
+import { useHistory } from 'react-router-dom';
+
+const useEditHotel = () => {
+
+    const history = useHistory();
+    const editHotel = async ({hotel}) => {
+        await axios
+	            .post(`/hotel/edit`, hotel) 
+	            .then((res) => {
+	                history.push('/hotel');
+	            })
+	            .catch((err) => {
+	                console.log(err);
+	            })
+	            .finally(() => {
+	            });
+    } 
+    return (
+        editHotel
+    )
+
+}
+
+export default useEditHotel;
Index: frontend/src/Components/Hooks/Hotel/useRemoveHotel.js
===================================================================
--- frontend/src/Components/Hooks/Hotel/useRemoveHotel.js	(revision e6c2521bc7455763be50cf2e37427887b6efb4b9)
+++ frontend/src/Components/Hooks/Hotel/useRemoveHotel.js	(revision e6c2521bc7455763be50cf2e37427887b6efb4b9)
@@ -0,0 +1,26 @@
+import React from "react";
+import axios from "axios";
+import { useHistory } from 'react-router-dom';
+
+const useRemoveHotel = () => {
+
+    const history = useHistory();
+    const removeHotel = async ({id}) => {
+        await axios
+	            .get(`/hotel/delete?userId=` + id) 
+	            .then((res) => {
+	                history.push('/hotel');
+	            })
+	            .catch((err) => {
+	                console.log(err);
+	            })
+	            .finally(() => {
+	            });
+    } 
+    return (
+        removeHotel
+    )
+
+}
+
+export default useRemoveHotel;
