export function DataPanel(props: { columns: string[]; empty: string; rows: string[][]; title: string }) { return (

{props.title}

{props.rows.length}
{props.columns.map((column) => ( {column} ))}
{props.rows.map((row, index) => (
{row.map((cell, cellIndex) => ( {cell} ))}
))} {!props.rows.length &&

{props.empty}

}
); }