umami/components/metrics/EventsTable.js
2023-03-22 14:05:55 -07:00

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}
/>
);
}