Se agregan tabs de asignaturas

This commit is contained in:
2026-01-06 16:03:16 -06:00
parent a87bcdc1b9
commit 75fdec775b
7 changed files with 477 additions and 3 deletions

View File

@@ -0,0 +1,28 @@
import { Pencil } from 'lucide-react'
import { EditTemaDialog } from './EditTemaDialog'
export function TemaItem({
id,
titulo,
horas,
}: {
id: string
titulo: string
horas: number
}) {
return (
<EditTemaDialog
temaId={id}
defaultValue={titulo}
horas={horas}
>
<button className="w-full flex items-center justify-between rounded-md border px-4 py-2 text-left hover:bg-gray-50">
<span>{titulo}</span>
<div className="flex items-center gap-3 text-sm text-muted-foreground">
<span>{horas} hrs</span>
<Pencil className="w-4 h-4" />
</div>
</button>
</EditTemaDialog>
)
}