UNPKG

model-navigator-standalone

Version:

Standalone MDF graph model visualizer

56 lines (52 loc) 1.12 kB
import React from 'react'; import withStyles from '@mui/styles/withStyles'; const TableHeader = ({ classes, hideIsRequired }) => ( <thead className={classes.tableHead}> <tr> <th className={classes.item}> Property </th> <th className={classes.item}> Type </th> { !hideIsRequired && ( <th className={classes.item}> Required </th> ) } <th className={classes.item}> Description </th> </tr> </thead> ); const styles = () => ({ tableHead: { color: '#606060', fontSize: '13px', background: '#eef5f7', borderTop: '3px solid #adbec4', borderBottom: '3px solid #adbec4', '& th': { fontWeight: '900', }, }, item: { padding: '10px 10px 10px 19px', border: '0', textAlign: 'left', fontFamily: 'Raleway', verticalAlign: 'top', '& p': { margin: 'auto', }, '&:nth-child(2) > p': { maxWidth: '300px', minWidth: '100px', wordWrap: 'break-word', }, }, }); export default withStyles(styles)(TableHeader);