'use client' import { useState } from 'react' import { useSearchParams } from 'next/navigation' import { AdminNavBar } from '@/components/admin-nav-bar' import { FilterSidebar } from '@/components/dashboard/filter-sidebar' import { TalentoRiesgoCard } from '@/components/dashboard/talento-riesgo-card' import { PrevalenciaCuidadoresCard } from '@/components/dashboard/prevalencia-cuidadores-card' import { PuntoCiegoCard } from '@/components/dashboard/punto-ciego-card' import { SenalesImpactoBar } from '@/components/dashboard/senales-impacto-bar' import { ApoyosBarME } from '@/components/dashboard/apoyos-bar-me' import { SegmentacionBar } from '@/components/dashboard/segmentacion-bar' import { DisposicionRedCard } from '@/components/dashboard/disposicion-red-card' import type { DashboardFilters } from '@/lib/dashboard-types' // El survey_id se pasa como query param: /dashboard?survey_id=UUID // '00000000-0000-0000-0000-000000000000' = flag p_all (vista agregada de todos los surveys) const SURVEY_OPTIONS = [ { label: 'Todos', id: '00000000-0000-0000-0000-000000000000' }, { label: 'InQuality', id: '30000000-0000-0000-0000-000000000002' }, { label: 'Fundación Solidaridad', id: '30000000-0000-0000-0000-000000000003' }, { label: 'Demo', id: '30000000-0000-0000-0000-000000000001' }, ] type Lens = 'empresa' | 'pais' | 'humana' const LENSES: { id: Lens; label: string; sub: string }[] = [ { id: 'empresa', label: 'Mirada Empresa', sub: 'rendimiento · rotación · clima' }, { id: 'pais', label: 'Mirada País', sub: 'desarrollo · vulnerabilidad · política' }, { id: 'humana', label: 'Mirada Humana', sub: 'bienestar · derechos · desarrollo' }, ] function PlaceholderLens({ title, hint }: { title: string; hint: string }) { return (
{title} — Disponible próximamente
{hint}
Datos agregados · k-anonimato k≥5 · Encuesta Mapeo de Cuidadores 2026 {filters.depto && · Filtro: {filters.depto}}
k≥5 aplicado · segmentos con n<5 suprimidos
> )} {lens === 'pais' && (