import { GridTable, GridColumn, Button, Icon, Text, Flexbox } from 'react-basics'; import { useMessages, usePageQuery } from 'hooks'; import Link from 'next/link'; import Icons from 'components/icons'; import PageHeader from 'components/layout/PageHeader'; import Empty from 'components/common/Empty'; export function EventDataTable({ data = [], field, event }) { const { formatMessage, labels } = useMessages(); const { resolveUrl } = usePageQuery(); const Title = () => { return ( <> {event} - {field} ); }; return ( <> } /> {data.length <= 0 && } {data.length > 0 && ( {({ total }) => total.toLocaleString()} )} ); } export default EventDataTable;