aboutsummaryrefslogtreecommitdiff
path: root/src/app/(main)/admin/websites/AdminWebsitesDataTable.tsx
blob: 21059924b366ea08e02af7174637a5c4fc1da1ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { DataGrid } from '@/components/common/DataGrid';
import { useWebsitesQuery } from '@/components/hooks';
import { AdminWebsitesTable } from './AdminWebsitesTable';

export function AdminWebsitesDataTable() {
  const query = useWebsitesQuery();

  return (
    <DataGrid query={query} allowSearch={true}>
      {props => <AdminWebsitesTable {...props} />}
    </DataGrid>
  );
}