apps/meteor/client/omnichannel/additionalForms/MaxChatsPerAgentDisplay.tsx
import { useTranslation } from '@rocket.chat/ui-contexts';
import React from 'react';
import { InfoPanelLabel, InfoPanelText } from '../../components/InfoPanel';
import { useHasLicenseModule } from '../../hooks/useHasLicenseModule';
const MaxChatsPerAgentDisplay = ({ maxNumberSimultaneousChat = 0 }) => {
const t = useTranslation();
const hasLicense = useHasLicenseModule('livechat-enterprise');
if (!hasLicense) {
return null;
}
return (
<>
<InfoPanelLabel>{t('Max_number_of_chats_per_agent')}</InfoPanelLabel>
<InfoPanelText>{maxNumberSimultaneousChat}</InfoPanelText>
</>
);
};
export default MaxChatsPerAgentDisplay;