Spaces:
Configuration error
Configuration error
Download src/app/(main)/settings/users/UsersDataTable.tsx from SreejithSHR/umami: direct link, hf CLI and curl.
- Browser
- Download file 540 Bytes
-
https://huggingface.co/spaces/SreejithSHR/umami/resolve/main/src/app/(main)/settings/users/UsersDataTable.tsx
- Command line
-
hf download 'hf://spaces/SreejithSHR/umami/src/app/(main)/settings/users/UsersDataTable.tsx'
-
curl -L -o UsersDataTable.tsx 'https://huggingface.co/spaces/SreejithSHR/umami/resolve/main/src/app/(main)/settings/users/UsersDataTable.tsx'
540 Bytes
| import DataTable from 'components/common/DataTable'; | |
| import { useUsers } from 'components/hooks'; | |
| import UsersTable from './UsersTable'; | |
| import { ReactNode } from 'react'; | |
| export function UsersDataTable({ | |
| showActions, | |
| children, | |
| }: { | |
| showActions?: boolean; | |
| children?: ReactNode; | |
| }) { | |
| const queryResult = useUsers(); | |
| return ( | |
| <DataTable queryResult={queryResult} renderEmpty={() => children}> | |
| {({ data }) => <UsersTable data={data} showActions={showActions} />} | |
| </DataTable> | |
| ); | |
| } | |
| export default UsersDataTable; | |