import { labels } from 'components/messages'; import useUser from 'hooks/useUser'; import { ROLES } from 'lib/constants'; import Link from 'next/link'; import { Button, Flexbox, Icon, Icons, Modal, ModalTrigger, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, Text, } from 'react-basics'; import { useIntl } from 'react-intl'; import TeamDeleteForm from './TeamDeleteForm'; export default function TeamsTable({ data = [], onDelete }) { const { formatMessage } = useIntl(); const { user } = useUser(); const columns = [ { name: 'name', label: formatMessage(labels.name), style: { flex: 2 } }, { name: 'owner', label: formatMessage(labels.owner) }, { name: 'action', label: ' ' }, ]; return (