import { Pagination, Typography, Button, Box, Card, CardContent, Chip, } from "@mui/material"; import { useProjets } from "../hook/useProjet"; import { useState } from "react"; export default function AllProjet() { const [page, setPage] = useState(1); const { data: projets } = useProjets(10, page); console.log(projets); const handleChange = (_event: React.ChangeEvent, value: number) => { setPage(value); }; return ( {projets && projets.data.map((projet) => ( {projet.name} {projet.shortdescriptionfr} {projet?.technologies?.map((tech, index) => { const colorPalette = [ "#f44336", "#e91e63", "#9c27b0", "#3f51b5", "#2196f3", "#03a9f4", "#009688", "#4caf50", "#8bc34a", "#ff9800", "#ff5722", "#795548", ]; return ( ); })} ))} ); }