import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/Card.tsx'; import SimpleBarChart from './SimpleBarChart'; type Props = { topNeeds: Array<{ label: string; value: number }>; topOffers: Array<{ label: string; value: number }>; marketGaps: Array<{ label: string; value: number }>; t: (key: string) => string; }; const SupplyDemandSection = ({ topNeeds, topOffers, marketGaps, t }: Props) => { return ( {t('analyticsDashboard.supplyDemand')}
({ label: n.label, value: n.value }))} title={t('analyticsDashboard.topNeeds')} /> ({ label: o.label, value: o.value }))} title={t('analyticsDashboard.topOffers')} /> ({ label: g.label, value: g.value }))} title={t('analyticsDashboard.marketGaps')} />
); }; export default SupplyDemandSection;