mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 20:57:17 +01:00
22 lines
529 B
TypeScript
22 lines
529 B
TypeScript
import MetricsTable, { MetricsTableProps } from './MetricsTable';
|
|
import { useMessages } from '@/components/hooks';
|
|
|
|
export function EventsTable(props: MetricsTableProps) {
|
|
const { formatMessage, labels } = useMessages();
|
|
|
|
function handleDataLoad(data: any) {
|
|
props.onDataLoad?.(data);
|
|
}
|
|
|
|
return (
|
|
<MetricsTable
|
|
{...props}
|
|
title={formatMessage(labels.events)}
|
|
type="event"
|
|
metric={formatMessage(labels.actions)}
|
|
onDataLoad={handleDataLoad}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export default EventsTable;
|