import Link from "next/link"; import { ModuleCard } from "@/components/app/module-card"; import { PageShell } from "@/components/app/page-shell"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { requireOnboardedUser } from "@/lib/auth/user"; import { getDiagnosticOverview } from "@/lib/diagnostic"; export default async function DiagnosticPage() { const user = await requireOnboardedUser(); const overview = await getDiagnosticOverview(user.id); return ( ) : undefined } >

Estado general

Modulos

{overview.stats.modules}

Completados

{overview.stats.completedModules}

Progreso total

{overview.stats.overallCompletion}%

Respuestas

{overview.stats.answeredQuestions}/{overview.stats.totalQuestions}

{overview.modules.length === 0 ? (

No hay modulos configurados

Ejecuta el seed de base de datos para cargar modulos, preguntas y opciones antes de iniciar el diagnostico.

) : (
{overview.modules.map((module) => ( ))}
)}
); }