import TableContainer from '@mui/material/TableContainer'; import Table from '@mui/material/Table'; import TableHead from '@mui/material/TableHead'; import TableRow from '@mui/material/TableRow'; import TableCell from '@mui/material/TableCell'; import TableBody from '@mui/material/TableBody'; /* Displays a list of rooms */ export default function Rooms({ rooms, callbackRoomSelected }) { if (rooms.length === 0) { return; } return Salle Bâtiment {rooms.map((room) => { return callbackRoomSelected(room.floors[0].id, room.idPlace)} key={room.idPlace} > {room.namePlace[0]} {room.nameBuilding} })}
}