mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 03:25:40 +01:00
20 lines
511 B
TypeScript
20 lines
511 B
TypeScript
import { useWebsiteEvents } from 'components/hooks';
|
|
import EventsTable from './EventsTable';
|
|
import DataTable from 'components/common/DataTable';
|
|
import { ReactNode } from 'react';
|
|
|
|
export default function EventsDataTable({
|
|
websiteId,
|
|
}: {
|
|
websiteId?: string;
|
|
teamId?: string;
|
|
children?: ReactNode;
|
|
}) {
|
|
const queryResult = useWebsiteEvents(websiteId);
|
|
|
|
return (
|
|
<DataTable queryResult={queryResult} allowSearch={true}>
|
|
{({ data }) => <EventsTable data={data} />}
|
|
</DataTable>
|
|
);
|
|
}
|