Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import dynamicsFont from 'ringcentral-widgets/assets/DynamicsFont/DynamicsFont.scss';
import callDirections from 'ringcentral-integration/enums/callDirections';
import callResults from 'ringcentral-integration/enums/callResults';
import telephonyStatuses from 'ringcentral-integration/enums/telephonyStatus';
import { isMissed } from 'ringcentral-integration/lib/callLogHelpers';
import i18n from './i18n';
import styles from './styles.scss';
const callIconMap = {
[callResults.missed]: dynamicsFont.missed,
[callDirections.inbound]: dynamicsFont.inbound,
[callDirections.outbound]: dynamicsFont.outbound,
[telephonyStatuses.ringing]: dynamicsFont.callHover
};
const colorStatusMap = {
green: [
telephonyStatuses.callConnected,
telephonyStatuses.ringing,
callResults.callAccepted,
callResults.accepted,
],
red: [
callResults.missed,
callResults.voicemail,
callResults.rejected,
callResults.blocked,