import React from "react"; import {useNavigate} from "react-router-dom"; import {Card, CardContent, CardHeader, CardMedia, IconButton, Typography} from "@mui/material"; import {ManageAccountsRounded} from "@mui/icons-material"; import {useAuthContext} from "../../configurations/AuthContext"; import {UserRole} from "../../services/user-service"; import RestourantImage from "../../assets/images/restorant-logo2.jpg"; function MoreVertIcon() { return null; } const RestoranCard = ({restoran}) => { const navigate = useNavigate(); const {loggedUserRole} = useAuthContext(); return ( restoran != null && navigate(`/restorants/${restoran.id}`)}> } action={ } title={restoran.manager.korisnik.username.toUpperCase()} subheader="Manager" /> {restoran.ime} {restoran.lokacija} {restoran.rabotnoVreme} ) } export default RestoranCard;