function renderTable({ content }) {
const isEmpty = !content.length;
return <tbody class={isEmpty && 'centered'}>
{isEmpty ?
renderEmpty() :
renderCells(content)}
</tbody>;
}
function renderEmpty() {
return <tr>
<td></td>
</tr>
}
function renderCells(cells) {
return
cells.map(item => <tr>
<td></td>
<td></td>
</tr>)
}