UNPKG

653 BTypeScriptView Raw
1import type { FormatXMLElementFn, Options as IntlMessageFormatOptions, PrimitiveType } from 'intl-messageformat';
2import * as React from 'react';
3import { MessageDescriptor } from '@formatjs/intl';
4export interface Props<V extends Record<string, any> = Record<string, React.ReactNode | PrimitiveType | FormatXMLElementFn<React.ReactNode>>> extends MessageDescriptor {
5 values?: V;
6 tagName?: React.ElementType<any>;
7 children?(nodes: React.ReactNode[]): React.ReactNode | null;
8 ignoreTag?: IntlMessageFormatOptions['ignoreTag'];
9}
10declare const MemoizedFormattedMessage: React.ComponentType<Props>;
11export default MemoizedFormattedMessage;