import { Cuisine, PRICE, Location } from "@prisma/client"; import Link from "next/link"; import Price from "../../components/Price"; interface Restaurant { cuisine: Cuisine; name: string; location: Location; id: number; price: PRICE; main_image: string; slug: string; } export default function RestaurantCard({restaurant}: {restaurant: Restaurant;} ) { return (

{restaurant.name}

*****

Awesome

{restaurant.cuisine.name}

{restaurant.location.name}

View more information
); }