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/components/admin/settings/GroupSelector.js

25 lines
615 B

import React from 'react';
import { AssetsGroupPage } from './groups/AssetsGroupPage';
import { OAuthGroupPage } from './groups/OAuthGroupPage';
import { GenericGroupPage } from './groups/GenericGroupPage';
import { GroupPage } from './GroupPage';
import { useGroup } from './SettingsState';
export function GroupSelector({ groupId }) {
const group = useGroup(groupId);
if (!group) {
return <GroupPage.Skeleton />;
}
if (groupId === 'Assets') {
return <AssetsGroupPage {...group} />;
}
if (groupId === 'OAuth') {
return <OAuthGroupPage {...group} />;
}
return <GenericGroupPage {...group} />;
}