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

23 lines
670 B

import { Button } from '@rocket.chat/fuselage';
import React from 'react';
import { useTranslation } from '../../../providers/TranslationProvider';
import { GroupPage } from '../GroupPage';
import { Section } from '../Section';
export function AssetsGroupPage({ group }) {
const solo = group.sections.length === 1;
const t = useTranslation();
return <GroupPage group={group} headerButtons={<>
<Button className='refresh-clients'>{t('Apply_and_refresh_all_clients')}</Button>
</>}>
{group.sections.map((sectionName) => <Section
key={sectionName}
groupId={group._id}
hasReset={false}
sectionName={sectionName}
solo={solo}
/>)}
</GroupPage>;
}