import { Button } from '@/components/ui/button' import { Table2, Palette, ScatterChart, Share2, Grid3x3, Radar, BarChart3, } from 'lucide-react' const views = [ { id: 'table', icon: Table2, label: 'Tableau' }, { id: 'heat', icon: Palette, label: 'Matrice thermique' }, { id: 'scatter', icon: ScatterChart, label: 'Nuage de points' }, { id: 'graph', icon: Share2, label: 'Graphe' }, { id: 'treemap', icon: Grid3x3, label: 'Treemap' }, { id: 'radar', icon: Radar, label: 'Radar' }, { id: 'bars', icon: BarChart3, label: 'Barres' }, ] export function ViewSwitcher({ active, onChange }) { return (
{views.map((v) => { const Icon = v.icon const isActive = active === v.id return ( ) })}
) }