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

20 lines
591 B

import React, { memo } from 'react';
import { useEditableSettingsGroupSections } from '../../../../contexts/EditableSettingsContext';
import GroupPage from '../GroupPage';
import Section from '../Section';
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);