Files
front-AT/app/Components/BitacoraSanciones/Sanciones.tsx
T

25 lines
543 B
TypeScript
Raw Normal View History

2025-09-28 01:59:16 -06:00
import Information from "../Global/Information/information";
import ApplySanction from "./ApplySanction";
2025-09-28 01:59:16 -06:00
interface Student {
2025-09-29 15:37:56 -06:00
id_cuenta: string;
nombre: string;
2025-10-14 14:27:03 -06:00
credito?: number;
2025-09-28 01:59:16 -06:00
}
2025-10-14 14:27:03 -06:00
export default function Sanciones({ student }: { student?: Student }) {
const idCuenta = student?.id_cuenta ?? null;
2025-09-28 01:59:16 -06:00
return (
<>
2025-10-14 14:27:03 -06:00
{student && (
2025-09-29 15:37:56 -06:00
<>
2025-10-14 14:27:03 -06:00
<Information NoCuenta={student.id_cuenta} Nombre={student.nombre} />
<ApplySanction idCuenta={parseInt(student.id_cuenta)} />
2025-09-29 15:37:56 -06:00
</>
2025-09-28 01:59:16 -06:00
)}
</>
);
}
2025-10-14 14:27:03 -06:00
//