Index: frontend/src/Components/Hooks/Transport/useCreateTransport.js
===================================================================
--- frontend/src/Components/Hooks/Transport/useCreateTransport.js	(revision e6c2521bc7455763be50cf2e37427887b6efb4b9)
+++ frontend/src/Components/Hooks/Transport/useCreateTransport.js	(revision e6c2521bc7455763be50cf2e37427887b6efb4b9)
@@ -0,0 +1,44 @@
+import React from "react";
+import axios from "../../../axios";
+import { useHistory } from 'react-router-dom';
+
+const useCreateTransport = () => {
+	const userId = JSON.parse(localStorage.getItem('user')).userId
+    const createTransport = async (transport, edit) => {
+			if(!edit)
+			{
+				await axios
+	            .post(`/transport/add/` + userId, transport)
+	            .then((res) => {
+	                //history.push('/transport');
+					console.log(res)
+	            })
+	            .catch((err) => {
+	                console.log(err);
+	            })
+	            .finally(() => {
+	            });
+			}
+			else
+			{
+				await axios
+	            .post(`/transport/edit`, transport) 
+	            .then((res) => {
+	                //history.push('/transport');
+					console.log(res)
+	            })
+	            .catch((err) => {
+	                console.log(err);
+	            })
+	            .finally(() => {
+	            });
+			}
+    }
+
+    return {
+        createTransport
+	}
+
+}
+
+export default useCreateTransport;
Index: frontend/src/Components/Hooks/Transport/useCreateTrip.js
===================================================================
--- frontend/src/Components/Hooks/Transport/useCreateTrip.js	(revision e6c2521bc7455763be50cf2e37427887b6efb4b9)
+++ frontend/src/Components/Hooks/Transport/useCreateTrip.js	(revision e6c2521bc7455763be50cf2e37427887b6efb4b9)
@@ -0,0 +1,34 @@
+import React from "react";
+
+import axios from "../../../axios.js";
+import { useNavigate } from "react-router-dom";
+
+const useCreateTrip = (transportId) => {
+
+    const createTrip = async (trip) => {
+		console.log({trip})
+		console.log(trip)
+        await axios
+	            .post(`/transport/available/add`, trip, {
+					params: {
+                        userId: localStorage.getItem("userId"),
+                        transportId: transportId
+					}
+				}) 
+	            .then((res) => {
+	                //history.push('/hotel');
+	            })
+	            .catch((err) => {
+	                console.log(err);
+	            })
+	            .finally(() => {
+	            });
+    }
+
+	return {
+		createTrip
+	};
+
+}
+
+export default useCreateTrip;
Index: frontend/src/Components/Hooks/Transport/useEditTransport.js
===================================================================
--- frontend/src/Components/Hooks/Transport/useEditTransport.js	(revision e6c2521bc7455763be50cf2e37427887b6efb4b9)
+++ frontend/src/Components/Hooks/Transport/useEditTransport.js	(revision e6c2521bc7455763be50cf2e37427887b6efb4b9)
@@ -0,0 +1,26 @@
+import React from "react";
+import axios from "axios";
+import { useHistory } from 'react-router-dom';
+
+const useEditTransport = () => {
+
+    const history = useHistory();
+    const editTransport = async ({transport}) => {
+        await axios
+	            .post(`/transport/edit`, transport) 
+	            .then((res) => {
+	                history.push('/transport');
+	            })
+	            .catch((err) => {
+	                console.log(err);
+	            })
+	            .finally(() => {
+	            });
+    } 
+    return (
+        editTransport
+    )
+
+}
+
+export default useEditTransport;
Index: frontend/src/Components/Hooks/Transport/useRemoveTransport.js
===================================================================
--- frontend/src/Components/Hooks/Transport/useRemoveTransport.js	(revision e6c2521bc7455763be50cf2e37427887b6efb4b9)
+++ frontend/src/Components/Hooks/Transport/useRemoveTransport.js	(revision e6c2521bc7455763be50cf2e37427887b6efb4b9)
@@ -0,0 +1,26 @@
+import React from "react";
+import axios from "axios";
+import { useHistory } from 'react-router-dom';
+
+const useRemoveTransport = () => {
+
+    const history = useHistory();
+    const removeTransort = async ({id}) => {
+        await axios
+	            .get(`/transport/delete?transportId=` + id) 
+	            .then((res) => {
+	                history.push('/transport');
+	            })
+	            .catch((err) => {
+	                console.log(err);
+	            })
+	            .finally(() => {
+	            });
+    } 
+    return (
+        removeTransport
+    )
+
+}
+
+export default useRemoveTransport;
