import React from "react"; import PictogramsSeparate from "./PictogramsSeparate"; import DishList from "./DishList"; import CircularProgress from "@material-ui/core/CircularProgress"; import { extractTags } from "../../Services"; import { useSelector } from "react-redux"; export default function Restaurant(props) { const restaurant = useSelector((state) => state.restaurant); const showDishList = useSelector((state) => state.data.showDishList); return (

{restaurant.name}

{restaurant.description}


Miejscowość:{" "} {restaurant.city}

Godziny pracy:{" "} {restaurant.workingHours}

{restaurant.phone && (

Kontakt:{" "} {restaurant.phone}

)}

Menu

{showDishList === false && } {showDishList === true && }
); }