The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/client/views/admin/permissions/UsersInRole/UsersInRolePageWithData.tsx

18 lines
447 B

import { useRouteParameter } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
import UsersInRolePage from './UsersInRolePage';
import { useRole } from '../hooks/useRole';
const UsersInRolePageWithData = (): ReactElement | null => {
const _id = useRouteParameter('_id');
const role = useRole(_id);
if (!role) {
return null;
}
return <UsersInRolePage role={role} />;
};
export default UsersInRolePageWithData;