mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-11 20:17:28 +01:00
24 lines
523 B
JavaScript
24 lines
523 B
JavaScript
import MetricsTable from './MetricsTable';
|
|
import useMessages from 'hooks/useMessages';
|
|
|
|
export 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}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export default EventsTable;
|