mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-27 21:00:12 +01:00
21 lines
495 B
JavaScript
21 lines
495 B
JavaScript
|
import { useContext } from 'react';
|
||
|
import DataTable from 'components/metrics/DataTable';
|
||
|
import { useMessages } from 'hooks';
|
||
|
import { ReportContext } from '../Report';
|
||
|
|
||
|
export function EventDataTable() {
|
||
|
const { report } = useContext(ReportContext);
|
||
|
const { formatMessage, labels } = useMessages();
|
||
|
|
||
|
return (
|
||
|
<DataTable
|
||
|
data={report?.data}
|
||
|
title={formatMessage(labels.eventData)}
|
||
|
metric="#"
|
||
|
showPercentage={true}
|
||
|
/>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export default EventDataTable;
|