import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/Card.tsx'; import SimpleBarChart from './SimpleBarChart'; type Props = { flowsByType: Record; flowsBySector: Record; t: (key: string) => string; }; const ResourceFlowAnalyticsSection = ({ flowsByType, flowsBySector, t }: Props) => { const byType = Object.entries(flowsByType || {}).map(([label, value]) => ({ label, value })); const bySector = Object.entries(flowsBySector || {}).map(([label, value]) => ({ label, value })); return ( {t('analyticsDashboard.resourceFlows')}
); }; export default ResourceFlowAnalyticsSection;