import Link from 'next/link'; import { GridTable, GridColumn } from 'react-basics'; import { useMessages, usePageQuery } from 'hooks'; import Empty from 'components/common/Empty'; export function EventDataTable({ data = [] }) { const { formatMessage, labels } = useMessages(); const { resolveUrl } = usePageQuery(); if (data.length === 0) { return ; } return ( {row => ( {row.event} )} {row => row.field} {({ total }) => total.toLocaleString()} ); } export default EventDataTable;