import { formatNumber } from '@/lib/fin'; const SimpleBarChart = ({ data, title, }: { data: Array<{ label: string; value: number; color?: string }>; title: string; }) => { const maxValue = Math.max(...data.map((d) => d.value), 1); return (

{title}

{data.map((item, index) => (
{item.label}
{formatNumber(item.value)}
))}
); }; export default SimpleBarChart;