mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
22 lines
502 B
JavaScript
22 lines
502 B
JavaScript
import MetricsTable from './MetricsTable';
|
|
import useMessages from 'hooks/useMessages';
|
|
|
|
export default function EventsTable({ websiteId, ...props }) {
|
|
const { formatMessage, labels } = useMessages();
|
|
|
|
function handleDataLoad(data) {
|
|
props.onDataLoad?.(data);
|
|
}
|
|
|
|
return (
|
|
<MetricsTable
|
|
{...props}
|
|
title={formatMessage(labels.events)}
|
|
type="event"
|
|
metric={formatMessage(labels.actions)}
|
|
websiteId={websiteId}
|
|
onDataLoad={handleDataLoad}
|
|
/>
|
|
);
|
|
}
|