import { useState } from "react" import { Star } from "lucide-react" import { cn } from "@/lib/utils" interface RatingProps { value: number onChange?: (value: number) => void readonly?: boolean className?: string size?: "sm" | "md" } export function StarRating({ value, onChange, readonly = false, className, size = "md" }: RatingProps) { const [hoverValue, setHoverValue] = useState(null) const stars = Array.from({ length: 10 }, (_, i) => i + 1) const starSize = size === "sm" ? "h-3 w-3" : "h-4 w-4" return (
{stars.map((star) => ( ))}
) }