'use client' import type { WidgetStatus } from '@/lib/dashboard-types' interface WidgetShellProps { title: string status: WidgetStatus n?: number children: React.ReactNode colSpan?: number } export function WidgetShell({ title, status, n, children, colSpan = 6 }: WidgetShellProps) { return (

{title}

{n !== undefined && status === 'ok' && ( n = {n.toLocaleString('es-PY')} )}
{status === 'loading' && (
)} {status === 'suppressed' && (
đź”’

Datos insuficientes

Se necesitan al menos 5 respuestas en este corte.

)} {status === 'error' && (

Error al cargar los datos.

)} {status === 'ok' && children}
) }