import Link from 'next/link'; import { Table, TableHeader, TableBody, TableRow, TableCell, TableColumn, Button, Icon, Icons, Flexbox, } from 'react-basics'; import { defineMessages, useIntl } from 'react-intl'; const messages = defineMessages({ name: { id: 'label.name', defaultMessage: 'Name' }, domain: { id: 'label.domain', defaultMessage: 'Domain' }, }); export default function WebsitesTable({ data = [] }) { const { formatMessage } = useIntl(); const columns = [ { name: 'name', label: formatMessage(messages.name), style: { flex: 2 } }, { name: 'domain', label: formatMessage(messages.domain) }, { name: 'action', label: ' ' }, ]; return (