2020-08-25 08:49:14 +02:00
|
|
|
import MetricsTable from './MetricsTable';
|
2023-03-22 22:05:55 +01:00
|
|
|
import useMessages from 'hooks/useMessages';
|
2020-08-25 08:49:14 +02:00
|
|
|
|
2023-04-21 17:00:42 +02:00
|
|
|
export function EventsTable({ websiteId, ...props }) {
|
2023-03-22 22:05:55 +01:00
|
|
|
const { formatMessage, labels } = useMessages();
|
2021-02-15 16:31:53 +01:00
|
|
|
|
2021-02-21 02:27:56 +01:00
|
|
|
function handleDataLoad(data) {
|
2021-02-21 10:31:23 +01:00
|
|
|
props.onDataLoad?.(data);
|
2021-02-21 02:27:56 +01:00
|
|
|
}
|
|
|
|
|
2020-08-25 08:49:14 +02:00
|
|
|
return (
|
2022-08-05 22:07:20 +02:00
|
|
|
<MetricsTable
|
|
|
|
{...props}
|
2023-03-22 22:05:55 +01:00
|
|
|
title={formatMessage(labels.events)}
|
2022-08-05 22:07:20 +02:00
|
|
|
type="event"
|
2023-03-22 22:05:55 +01:00
|
|
|
metric={formatMessage(labels.actions)}
|
2022-08-05 22:07:20 +02:00
|
|
|
websiteId={websiteId}
|
|
|
|
onDataLoad={handleDataLoad}
|
|
|
|
/>
|
2020-08-25 08:49:14 +02:00
|
|
|
);
|
|
|
|
}
|
2023-04-21 17:00:42 +02:00
|
|
|
|
|
|
|
export default EventsTable;
|