import type { ContactModel } from '@ringcentral-integration/commons/interfaces/Contact.model'; import type { FunctionComponent } from 'react'; import React from 'react'; import type { GetPresenceFn } from '../../react-hooks/usePresence'; import type { clickToDial, clickToSMS, formatNumber, onClickMailTo, sourceNodeRenderer, } from './ContactDetails.interface'; import { CompanyInfo } from './components/CompanyInfo'; import { Emails } from './components/Emails'; import { PhoneSection } from './components/PhoneSection'; import { Profile } from './components/Profile'; import styles from './styles.scss'; interface ContactDetailsProps extends onClickMailTo, clickToSMS, clickToDial, formatNumber, sourceNodeRenderer { currentLocale: string; contact: ContactModel; disableLinks: boolean; isMultipleSiteEnabled: boolean; isCallButtonDisabled: boolean; getPresence: GetPresenceFn; } export const ContactDetails: FunctionComponent = ({ contact, currentLocale, onClickMailTo, disableLinks, isMultipleSiteEnabled, isCallButtonDisabled, canCallButtonShow, canTextButtonShow, formatNumber, onClickToDial, onClickToSMS, sourceNodeRenderer, getPresence, }) => { return (
); };