import React from 'react' import TodoRow from './todoRow.js' import styles from './todoTable.module.css' export default function TodoBoard(props) { const { tables, cards, userId, categories, onClick } = props return (
{Object.keys(tables).map((key) => { const table = tables[key] const tableCards = cards.filter((card) => { return card.state === key }) return (
{table.name}
{tableCards.map((card, i) => { return ( ) })}
) })}
) }