import {DishType} from "~/types/DishType"; import {PencilIcon, TrashIcon} from '@heroicons/react/24/solid' import { Link } from "react-router"; import useRoutes from "~/hooks/useRoutes"; import {UserType} from "~/types/UserType"; import Card from "~/components/layout/Card"; const Dish = ({ dish }: { dish: DishType}) => { const routes = useRoutes(); return (

{ dish.name }

{ dish.users.map((user: UserType) => (
{user.name.slice(0, 1)}
)) }
) } export default Dish