"use client"; import { useEffect, useState } from "react"; import styles from "./Page.module.css"; import axios from "axios"; interface alumno_sancion { id_alumno_sancion: number; fecha_inicio: string; alumno: alumno; sancion: sancion; } interface alumno { id_cuenta: number; nombre: string; credito: number; } interface sancion { id_sancion: number; sancion: string; duracion: number; } export default function TableSancion() { const [sanciones, setSanciones] = useState(); const [button, setButton] = useState(false); // useEffect(() => { // const getSanciones = async () => { // const response = await axios.get(""); // setSanciones(response); // }; // getSanciones(); // }, [button]); const handlebutton = () => { setButton(!button); }; return ( <>
Cuenta Motivo de la sanción Duracion (Semanas) Fecha Sanción Podra utilizar el servicio hasta
); } //IO