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

23 lines
567 B

import { useMemo } from 'react';
import { useSetting } from '../../../../client/contexts/SettingsContext';
import { addAction } from '../../../../client/views/room/lib/Toolbox';
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: 'ExternalFrameContainer',
order: -1,
}
: null,
[enabled],
);
});