{'unknown status ' + status}
; } }; const useStyles = makeStyles((theme) => ({ cell: { display: 'flex', alignItems: 'center', padding: theme.spacing(1), '& a': { textDecoration: 'none', }, }, status: { margin: theme.spacing(1, 2), }, expand: { width: '100%', lineHeight: '20px', }, title: { display: 'inline', color: theme.palette.text.primary, fontSize: '1.3rem', fontWeight: 500, }, details: { lineHeight: '1.5rem', color: theme.palette.text.secondary, }, labels: { paddingLeft: theme.spacing(1), }, commentCount: { fontSize: '1rem', marginLeft: theme.spacing(0.5), }, commentCountCell: { display: 'inline-flex', }, })); type Props = { bug: BugRowFragment; }; function BugRow({ bug }: Props) { const classes = useStyles(); // Subtract 1 from totalCount as 1 comment is the bug description const commentCount = bug.comments.totalCount - 1; return (