I am trying to add a minimize button to either minimize my MaterialUi Table or the Paper component that wraps it. Here is the code I have so far:
<TableContainer component={Paper} style={{maxHeight:'inherit', maxWidth:'inherit', boxSizing:'border-box'}}>
<Table size='small'>
<TableHead style={{
backgroundColor: 'black'
}}>
<TableRow>{headingsArray.map(val=><TableCell>{val}</TableCell>)}
</TableRow>
</TableHead>
<TableBody>
{
Object.entries(blueprint).map(([key,val]) =>
<TableRow>
<TableCell>{key}</TableCell>
{val.map((x)=><TableCell>{x}</TableCell>)}
</TableRow>
)
}
</TableBody>
</Table>
</TableContainer>