import React from 'react' import PropTypes from 'prop-types' import { CX } from '../constants' import Text from './text' class TableRow extends React.PureComponent { render() { const { id, row, total, index, } = this.props if (!Array.isArray(row)) return null const isLast = index === total - 1 const classes = CX({ d: 1, flexRow: 1, borderBottom1PX: !isLast, borderColorSecondary: !isLast, }) const style = { width: `${100 / row.length}%` } return (