import React from "react"; import { Container, Col, Row, Image, Nav, Tab } from "react-bootstrap"; import { useState } from "react"; import { FaTaxi, FaHotel } from "react-icons/fa"; import { MdOutlineStickyNote2, MdOutlineTableBar } from "react-icons/md"; import AddNew from "../Resources/AddNew"; import { BiData } from "react-icons/bi"; import AddRestaurantForm from "../Forms/AddRestaurantForm"; import MenuListing from "./MenuListing"; import TableListing from "./TableListing"; import EditModal from "../Resources/EditModal"; function RestaurantEditTab(props) { const [activeTab, setActiveTab] = useState("/hotel"); const [modalData, setModalData] = useState("") const [changed, setChanged] = useState(0) const [show, setShow] = useState(false); const handleClose = () => setShow(false); const handleShow = () => { //e.preventDefault(); setShow(true); }; const showModal = (modalData) => { setModalData(modalData); handleShow(); } const handleSelect = (eventKey) => { setActiveTab(eventKey); }; console.log(props.displayMenu.restaurantID) return ( {props.displayMenu.menus.map((menu) => { return })} {activeTab === '/hotel' && } {props.displayMenu.tables.map((table) => { return })} {activeTab === '/masi' && } ); } export default RestaurantEditTab;