import React, { ReactNode } from 'react'; import { MessageDescriptor } from 'react-intl'; import i18n from 'app/services/i18n'; function isMessageDescriptor(value: any): value is MessageDescriptor { return typeof value === 'object' && value.id; } export default class FormComponent
extends React.Component
{
/**
* Formats message resolving intl translations
*
* @param {string|object} message - message string, or intl message descriptor with an `id` field
*
* @deprecated
* @returns {string}
*/
formatMessage