mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 23:57:12 +01:00
23 lines
548 B
TypeScript
23 lines
548 B
TypeScript
import DataTable from 'components/common/DataTable';
|
|
import TeamsTable from 'app/(main)/settings/teams/TeamsTable';
|
|
import { useTeams } from 'components/hooks';
|
|
|
|
export function TeamsDataTable({
|
|
allowEdit,
|
|
showActions,
|
|
}: {
|
|
allowEdit?: boolean;
|
|
showActions?: boolean;
|
|
}) {
|
|
const queryResult = useTeams();
|
|
|
|
return (
|
|
<DataTable queryResult={queryResult}>
|
|
{({ data }) => {
|
|
return <TeamsTable data={data} allowEdit={allowEdit} showActions={showActions} />;
|
|
}}
|
|
</DataTable>
|
|
);
|
|
}
|
|
|
|
export default TeamsDataTable;
|