import Link from 'next/link'; import { Table, TableHeader, TableBody, TableRow, TableCell, TableColumn, Button, Icon, Flexbox, Icons, Text, } from 'react-basics'; import { useIntl } from 'react-intl'; import { labels } from 'components/messages'; export default function TeamsTable({ data = [] }) { const { formatMessage } = useIntl(); const columns = [ { name: 'name', label: formatMessage(labels.name), style: { flex: 2 } }, { name: 'action', label: ' ' }, ]; return ( {(column, index) => { return ( {column.label} ); }} {(row, keys, rowIndex) => { const { id } = row; row.action = ( ); return ( {(data, key, colIndex) => { return ( {data[key]} ); }} ); }}
); }