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