import { Box } from '@/ui/Box'; import { ProgressBar } from '@/ui/ProgressBar'; import { Stack } from '@/ui/Stack'; import { Text } from '@/ui/Text'; interface RatingComponentProps { label: string; value: number; maxValue: number; color: string; suffix?: string; description: string; breakdown: { label: string; percentage: number }[]; } export function RatingComponent({ label, value, maxValue, color, suffix = '', description, breakdown, }: RatingComponentProps) { const percentage = (value / maxValue) * 100; return ( {label} {value}{suffix} {description} {breakdown.map((item, index) => ( {item.label} {item.percentage}% ))} ); }