import React from 'react' import { Star } from 'lucide-react' import { AnimateIn } from '@/components/AnimateIn' interface ReviewItem { author: string location?: string rating?: number content: string } interface ReviewsBlockProps { badge?: string heading: string subheading?: string items?: ReviewItem[] } export function ReviewsBlockComponent(props: ReviewsBlockProps) { const { badge, heading, subheading, items } = props return (
{badge && (
{badge}
)}

{heading}

{subheading && (

{subheading}

)}
{items && items.length > 0 && (
{items.map((item, idx) => (
{Array.from({ length: item.rating || 5 }).map((_, sIdx) => ( ))}

"{item.content}"

{item.author}
{item.location && (
{item.location}
)}
))}
)}
) }