mirror of
https://github.com/umami-software/umami.git
synced 2026-02-17 02:55:38 +01:00
20 lines
539 B
TypeScript
20 lines
539 B
TypeScript
import { useWebsiteEventsQuery } from '@/components/hooks';
|
|
import { EventsTable } from './EventsTable';
|
|
import { DataGrid } from '@/components/common/DataGrid';
|
|
import { ReactNode } from 'react';
|
|
|
|
export function EventsDataTable({
|
|
websiteId,
|
|
}: {
|
|
websiteId?: string;
|
|
teamId?: string;
|
|
children?: ReactNode;
|
|
}) {
|
|
const queryResult = useWebsiteEventsQuery(websiteId);
|
|
|
|
return (
|
|
<DataGrid queryResult={queryResult} allowSearch={true} autoFocus={false}>
|
|
{({ data }) => <EventsTable data={data} />}
|
|
</DataGrid>
|
|
);
|
|
}
|