import React from 'react'; import MergeIntoConferenceIcon from '../../assets/images/MergeIntoConferenceIcon.svg'; import CallAvatar from '../CallAvatar'; import CircleButton from '../CircleButton'; import Modal from '../Modal'; import i18n from './i18n'; import styles from './styles.scss'; type ConfirmMergeModalProps = { currentLocale: string; show: boolean; onMerge?: (...args: any[]) => any; onCancel?: (...args: any[]) => any; partyProfiles?: object[]; }; const ConfirmMergeModal: React.FC = ({ currentLocale, show, onMerge, onCancel, partyProfiles, }) => { // @ts-expect-error TS(2532): Object is possibly 'undefined'. const avatarUrls = partyProfiles.map((profile) => profile.avatarUrl); return (
{i18n.getString('confirmMergeToConference', currentLocale)}
{i18n.getString('conferenceCall', currentLocale)}
{ e.stopPropagation(); // @ts-expect-error TS(2722): Cannot invoke an object which is possibly 'undefin... Remove this comment to see the full error message onMerge(); }} iconWidth={260} iconX={120} icon={MergeIntoConferenceIcon} showBorder={false} />
); }; ConfirmMergeModal.defaultProps = { onMerge() {}, onCancel() {}, partyProfiles: [], }; export default ConfirmMergeModal;