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

29 lines
633 B
TypeScript
Raw Normal View History

2025-09-28 01:59:16 -06:00
import Information from "../Global/Information/information";
import SearchUser from "../Global/SearchUser/searchUser";
2025-09-29 15:37:56 -06:00
import TableSancion from "./TableSancion";
2025-09-28 01:59:16 -06:00
interface Student {
2025-09-29 15:37:56 -06:00
id_cuenta: string;
nombre: string;
2025-09-28 01:59:16 -06:00
}
export default async function Sanciones(props: { student?: Student }) {
const idCuenta = props?.student?.id_cuenta ?? null;
return (
<>
2025-09-29 19:57:02 -06:00
<SearchUser value={idCuenta} />
2025-09-28 01:59:16 -06:00
{props.student && (
2025-09-29 15:37:56 -06:00
<>
<Information
NoCuenta={props.student.id_cuenta}
Nombre={props.student.nombre}
/>
2025-09-29 22:48:06 -06:00
<TableSancion />
2025-09-29 15:37:56 -06:00
</>
2025-09-28 01:59:16 -06:00
)}
</>
);
}