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/admin/settings/groups/GenericGroupPage.js

21 lines
586 B

import React, { memo } from 'react';
import GroupPage from '../GroupPage';
import { Section } from '../Section';
import { useEditableSettingsGroupSections } from '../../../contexts/EditableSettingsContext';
function GenericGroupPage({ _id, ...group }) {
const sections = useEditableSettingsGroupSections(_id);
const solo = sections.length === 1;
return <GroupPage _id={_id} {...group}>
{sections.map((sectionName) => <Section
key={sectionName || ''}
groupId={_id}
sectionName={sectionName}
solo={solo}
/>)}
</GroupPage>;
}
export default memo(GenericGroupPage);