import { Box } from './Box'; import { ProgressBar } from './ProgressBar'; import { Stack } from './Stack'; import { Text } from './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}% ))} ); }