mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 18:15:35 +01:00
19 lines
524 B
TypeScript
19 lines
524 B
TypeScript
import { DataGrid } from '@/components/common/DataGrid';
|
|
import { useTeamWebsitesQuery } from '@/components/hooks';
|
|
import { TeamWebsitesTable } from './TeamWebsitesTable';
|
|
|
|
export function TeamWebsitesDataTable({
|
|
teamId,
|
|
allowEdit = false,
|
|
}: {
|
|
teamId: string;
|
|
allowEdit?: boolean;
|
|
}) {
|
|
const queryResult = useTeamWebsitesQuery(teamId);
|
|
|
|
return (
|
|
<DataGrid query={queryResult} allowSearch>
|
|
{({ data }) => <TeamWebsitesTable data={data} teamId={teamId} allowEdit={allowEdit} />}
|
|
</DataGrid>
|
|
);
|
|
}
|