mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
21 lines
529 B
TypeScript
21 lines
529 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} autoFocus={false}>
|
|
{({ data }) => <EventsTable data={data} />}
|
|
</DataTable>
|
|
);
|
|
}
|