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/apps/meteor/app/livechat/client/externalFrame/tabBar.ts

25 lines
594 B

import { lazy, useMemo } from 'react';
import { useSetting } from '@rocket.chat/ui-contexts';
import { addAction } from '../../../../client/views/room/lib/Toolbox';
const template = lazy(() => import('./ExternalFrameContainer'));
addAction('omnichannel-external-frame', () => {
const enabled = useSetting('Omnichannel_External_Frame_Enabled');
return useMemo(
() =>
enabled
? {
groups: ['live'],
id: 'omnichannel-external-frame',
title: 'Omnichannel_External_Frame',
icon: 'cube',
template,
order: -1,
}
: null,
[enabled],
);
});