import React from "react"; import { Container, Row, Modal } from "react-bootstrap"; import { useState } from "react"; import { AiOutlinePlusCircle } from "react-icons/ai" import AddHotelForm from "../Forms/AddHotelForm"; import AddRoomForm from "../Forms/AddRoomForm"; import AddRestaurantForm from "../Forms/AddRestaurantForm"; import AddTransportForm from "../Forms/AddTransportForm"; import AddItemMenuForm from "../Forms/AddItemMenuForm"; import AddTripForm from "../Forms/AddTripForm"; import AddTableForm from "../Forms/AddTableForm"; const AddNew = (props) => { const [show, setShow] = useState(false || props.show); const [size, setSize] = useState("md"); console.log(props.show) const handleClose = () => { setSize("md"); setShow(false); } const handleShow = (e) => { e.preventDefault(); setShow(true); }; const setSizeXl = () => { setSize("xl") } return(<>

Додади нов

{props.type === "hotel" && "Додавање на хотел"} {props.type === "room" && "Додавање на соба"} {props.type === "restaurant" && "Додавање на ресторант"} {props.type === "transport" && "Додавање на транспорт"} {props.type === "menu" && "Додавање на ставка во мени"} {props.type === "route" && "Додавање на рута"} {props.type === "table" && "Додавање на маси"} {props.type === "hotel" && } {props.type === "room" && } {props.type === "restaurant" && } {props.type === "transport" && } {props.type === "menu" && } {props.type === "route" && } {props.type === "table" && } ) } export default AddNew;