import { Table, TableHeader, TableBody, TableRow, TableCell, TableColumn } from 'react-basics';
import styles from './SettingsTable.module.css';
export default function SettingsTable({ columns = [], data = [], children, cellRender }) {
return (
{(column, index) => {
return (
{column.label}
);
}}
{(row, keys, rowIndex) => {
row.action = children(row, keys, rowIndex);
return (
{(data, key, colIndex) => {
return (
{cellRender ? cellRender(row, data, key, colIndex) : data[key]}
);
}}
);
}}
);
}