import clsx from 'clsx'; import type { FunctionComponent } from 'react'; import React, { memo } from 'react'; import dynamicsFont from '../../assets/DynamicsFont/DynamicsFont.scss'; import { CallAvatar } from '../CallAvatar'; import ContactDisplay from '../ContactDisplay'; import IncomingCallPad from '../IncomingCallPad'; import styles from './styles.scss'; // TODO: fix that props type when full refactor ready const UserInfo: FunctionComponent = ({ avatarUrl, callQueueName, nameMatches, phoneNumber, fallBackName, currentLocale, areaCode, callerIdName, countryCode, selectedMatcherIndex, onSelectMatcherName, brand = 'RingCentral', showContactDisplayPlaceholder = true, sourceIcons, phoneTypeRenderer, phoneSourceNameRenderer, formatPhone, }) => { return (
{callQueueName}
{formatPhone(phoneNumber)}
); }; const IncomingCallPanel: FunctionComponent = ({ className, onBackButtonClick, phoneNumber, callQueueName, currentLocale, formatPhone, nameMatches, fallBackName, areaCode, countryCode, selectedMatcherIndex, onSelectMatcherName, avatarUrl, brand = 'RingCentral', showContactDisplayPlaceholder, sourceIcons, phoneTypeRenderer, phoneSourceNameRenderer, forwardingNumbers, answer, reject, toVoiceMail, replyWithMessage, onForward, hasOtherActiveCall, answerAndEnd, answerAndHold, sessionId, searchContact, searchContactList, children, callerIdName, }) => { return (
{children}
); }; export default memo(IncomingCallPanel);