import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableContainer from '@material-ui/core/TableContainer'; import TableHead from '@material-ui/core/TableHead'; import TableRow from '@material-ui/core/TableRow'; import Paper from '@material-ui/core/Paper'; const useStyles = makeStyles({ table: { minWidth: 650, }, }); function createData(name, description, status) { return { name, description, status }; } const rows = [ createData('Command', 'Description', true), createData('Command', 'Description', true), createData('Command', 'Description', true), createData('Command', 'Description', true), ]; function commands() { const classes = useStyles(); return ( Commands Description Status {rows.map((row) => ( {row.name} {row.description} {row.status ? 'Online' : 'Offline'} ))}
); } export default commands