fleet/frontend/pages/admin/UserManagementPage/UserManagementPage.tsx
Jacob Shandling cb58849d95
Fleet Premium to Sandbox (#11372)
## Addresses #9371 
### Adds a suite of UI logic for premium features in the Sandbox
environment

For reviewer: please review the work for the below 3 substasks, which
are the only remaining subtasks encompassed by this PR that have not yet
passed review individually:
  - #10822 (9)
  - #10823 (10)
  - #10824 (11)

## Checklist for submitter
- [x] Changes file added for user-visible changes in `changes/`
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
Co-authored-by: Martin Angers <martin.n.angers@gmail.com>
2023-04-27 08:53:30 -07:00

35 lines
1 KiB
TypeScript

import React from "react";
import { InjectedRouter } from "react-router";
import SandboxGate from "components/Sandbox/SandboxGate";
import SandboxMessage from "components/Sandbox/SandboxMessage";
import UsersTable from "./components/UsersTable";
const baseClass = "user-management";
interface IUserManagementProps {
router: InjectedRouter; // v3
}
const UserManagementPage = ({ router }: IUserManagementProps): JSX.Element => {
return (
<div className={`${baseClass}`}>
<p className={`${baseClass}__page-description`}>
Create new users, customize user permissions, and remove users from
Fleet.
</p>
<SandboxGate
fallbackComponent={() => (
<SandboxMessage
message="User management is only available in self-managed Fleet"
utmSource="fleet-ui-users-page"
className={`${baseClass}__sandbox-message`}
/>
)}
>
<UsersTable router={router} />
</SandboxGate>
</div>
);
};
export default UserManagementPage;