import {UserType} from "@/types/UserType"; import {FC} from "react"; import {DishType} from "@/types/DishType"; interface Props { user: UserType, dish: DishType, } const DishCard: FC = ({ user, dish }: Props) => { return (
{ user.name.slice(0, 1) }
{ dish ? dish.name : '-' }
) } export default DishCard