mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 09:45:04 +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;
|