25 lines
543 B
TypeScript
25 lines
543 B
TypeScript
import Information from "../Global/Information/information";
|
|
import ApplySanction from "./ApplySanction";
|
|
|
|
interface Student {
|
|
id_cuenta: string;
|
|
nombre: string;
|
|
credito?: number;
|
|
}
|
|
|
|
export default function Sanciones({ student }: { student?: Student }) {
|
|
const idCuenta = student?.id_cuenta ?? null;
|
|
|
|
return (
|
|
<>
|
|
{student && (
|
|
<>
|
|
<Information NoCuenta={student.id_cuenta} Nombre={student.nombre} />
|
|
<ApplySanction idCuenta={parseInt(student.id_cuenta)} />
|
|
</>
|
|
)}
|
|
</>
|
|
);
|
|
}
|
|
//
|