import { messageStoreErrors } from '@ringcentral-integration/commons/modules/MessageStore'; import React from 'react'; import FormattedMessage from '../../FormattedMessage'; import i18n from './i18n'; type MessageStoreAlertProps = { currentLocale: string; message: { message: string; }; }; const MessageStoreAlert: React.FC = (props) => { const { message } = props.message; let view = {i18n.getString(message, props.currentLocale)}; // Handle call record error if (message === messageStoreErrors.deleteFailed) { view = ( ); } return view; }; // @ts-expect-error TS(2339): Property 'handleMessage' does not exist on type 'S... Remove this comment to see the full error message MessageStoreAlert.handleMessage = ({ message }: any) => message === messageStoreErrors.deleteFailed; export default MessageStoreAlert;