import Link from 'next/link'; import { GridTable, GridColumn } from 'react-basics'; import { useMessages, useNavigation } from 'components/hooks'; import Empty from 'components/common/Empty'; import { DATA_TYPES } from 'lib/constants'; export function EventDataTable({ data = [] }) { const { formatMessage, labels } = useMessages(); const { renderUrl } = useNavigation(); if (data.length === 0) { return ; } return ( {row => ( {row.eventName} )} {row => row.fieldName} {row => DATA_TYPES[row.dataType]} {({ total }) => total.toLocaleString()} ); } export default EventDataTable;