mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
19 lines
523 B
TypeScript
19 lines
523 B
TypeScript
import type { ReactNode } from 'react';
|
|
import { DataGrid } from '@/components/common/DataGrid';
|
|
import { useTeamsQuery } from '@/components/hooks';
|
|
import { AdminTeamsTable } from './AdminTeamsTable';
|
|
|
|
export function AdminTeamsDataTable({
|
|
showActions,
|
|
}: {
|
|
showActions?: boolean;
|
|
children?: ReactNode;
|
|
}) {
|
|
const queryResult = useTeamsQuery();
|
|
|
|
return (
|
|
<DataGrid query={queryResult} allowSearch={true}>
|
|
{({ data }) => <AdminTeamsTable data={data} showActions={showActions} />}
|
|
</DataGrid>
|
|
);
|
|
}
|