blob: 7da8531a10b215881e286b9ea2d4bb272e5ac79b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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>
);
}
|