import classNames from '~/lib/classNames' interface HorizontalBarChartProps { items: Array<{ label: string value: number // percentage total: string used: string type?: string }> maxValue?: number } export default function HorizontalBarChart({ items, maxValue = 100 }: HorizontalBarChartProps) { const getBarColor = (value: number) => { if (value >= 90) return 'bg-desert-red' if (value >= 75) return 'bg-desert-orange' if (value >= 50) return 'bg-desert-tan' return 'bg-desert-olive' } const getGlowColor = (value: number) => { if (value >= 90) return 'shadow-desert-red/50' if (value >= 75) return 'shadow-desert-orange/50' if (value >= 50) return 'shadow-desert-tan/50' return 'shadow-desert-olive/50' } return (