import { cn } from '@/lib/utils'; import { Star } from 'lucide-react'; interface Props { rating: number; starClass?: string; wrapperClass?: string; } const RatingStars = ({ rating, starClass, wrapperClass }: Props) => { const renderRatingStars = (rating: number) => { const stars = []; const fullStars = Math.floor(rating); for (let i = 0; i < 5; i++) { if (i < fullStars) { stars.push(); } else { stars.push(); } } return stars; }; return
{renderRatingStars(rating)}
; }; export default RatingStars;