import PropTypes from 'prop-types' import { TableContainer, Table, TableHead, TableCell, TableRow, TableBody, Paper } from '@mui/material' export const TableViewOnly = ({ columns, rows }) => { return ( <> {columns.map((col, index) => ( {col.charAt(0).toUpperCase() + col.slice(1)} ))} {rows.map((row, index) => ( {Object.keys(row).map((key, index) => ( {row[key]} ))} ))}
) } TableViewOnly.propTypes = { rows: PropTypes.array, columns: PropTypes.array }