import StarRating from './StarRating'; interface Review { id: string; rating: number; title?: string; comment: string; user: { name: string; avatar_url?: string }; created_at: string; images?: string[]; } interface ReviewListProps { reviews: Review[]; productId?: string; onLoadMore?: () => void; hasMore?: boolean; isLoading?: boolean; } export default function ReviewList({ reviews, productId, onLoadMore, hasMore = false, isLoading = false }: ReviewListProps) { if (!reviews?.length) { return (
); } return ({review.user.name}
{review.comment}
{review.images && review.images.length > 0 && ( )}