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/client/views/admin/permissions/UsersInRolePageContainer.js

19 lines
413 B

import React from 'react';
import { useRouteParameter } from '../../../contexts/RouterContext';
import UsersInRolePage from './UsersInRolePage';
import { useRole } from './useRole';
const UsersInRolePageContainer = () => {
const _id = useRouteParameter('_id');
const role = useRole(_id);
if (!role) {
return null;
}
return <UsersInRolePage data={role} />;
};
export default UsersInRolePageContainer;