type Props = { rating: number; size?: "sm" | "md"; }; function StarIcon({ filled }: { filled: boolean }) { return ( ); } export function ReviewStars({ rating, size = "md" }: Props) { const rounded = Math.round(rating); const sizeClass = size === "sm" ? "text-sm" : "text-base"; return ( {Array.from({ length: 5 }).map((_, i) => ( ))} ); }