import { FC } from 'react'; import TableHead from '@mui/material/TableHead'; import TableRow from '@mui/material/TableRow'; import TableCell from '@mui/material/TableCell'; import { makeStyles } from '@mui/styles'; import type { Theme } from '@mui/material/styles'; import type { TableEditableHeadType } from './Types'; const useStyles = makeStyles((theme: Theme) => ({ tableCell: { paddingLeft: theme.spacing(2), }, tableHeader: { textTransform: 'capitalize', color: 'rgba(0, 0, 0, 0.6)', fontSize: '12.8px', }, tableRow: { // borderBottom: '1px solid rgba(0, 0, 0, 0.6);', }, })); const EditableTableHead: FC = props => { const { editHeads } = props; const classes = useStyles(); return ( {editHeads.map((headCell, index) => ( {headCell.component} ))} ); }; export default EditableTableHead;