New admin section.
This commit is contained in:
19
src/app/(main)/admin/teams/AdminTeamsDataTable.tsx
Normal file
19
src/app/(main)/admin/teams/AdminTeamsDataTable.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import { DataGrid } from '@/components/common/DataGrid';
|
||||
import { useTeamsQuery } from '@/components/hooks';
|
||||
import { AdminTeamsTable } from './AdminTeamsTable';
|
||||
import { ReactNode } from 'react';
|
||||
|
||||
export function AdminTeamsDataTable({
|
||||
showActions,
|
||||
}: {
|
||||
showActions?: boolean;
|
||||
children?: ReactNode;
|
||||
}) {
|
||||
const queryResult = useTeamsQuery();
|
||||
|
||||
return (
|
||||
<DataGrid query={queryResult} allowSearch={true}>
|
||||
{({ data }) => <AdminTeamsTable data={data} showActions={showActions} />}
|
||||
</DataGrid>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user