import React, { useState } from "react";
import { Container, Col, Row, Image } from "react-bootstrap";
import Navigation from "../Components/Layout/Navbar/Navigation";
import ResourcesTab from "../Components/Resources/ResourcesTab";
import HotelEditTab from "../Components/HotelEdit/HotelEditTab";
import useGet from "../Components/Hooks/useGet";
import { useParams } from "react-router-dom";
const HotelEditPage = () => {
const params = useParams();
const link = "/hotel/list/" + params.hotelId;
const [changed, setChanged] = useState(0)
const { data, setData, isLoading, getData } = useGet(link, changed);
console.log(data)
return (
<>
{!isLoading &&
Мои ресурси
{data.hotelName}
{data.hotelLocation}
}
>
);
};
export default HotelEditPage;