"use client"; import { Star, MapPin } from "lucide-react"; import type { Restaurant } from "@/types"; import RestaurantImage from "@/components/RestaurantImage"; import { buildNavUrl } from "@/lib/navigation"; interface RunnerUpCardProps { restaurant: Restaurant; likes: number; userCount: number; } export default function RunnerUpCard({ restaurant, likes, userCount }: RunnerUpCardProps) { return ( {restaurant.images?.[0] && ( )}

{restaurant.name}

{restaurant.rating} {restaurant.price} {restaurant.distance && ( {restaurant.distance} )}

{likes}/{userCount} 人想去

); }