mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-27 19:42:11 +10:00
26 lines
549 B
JavaScript
26 lines
549 B
JavaScript
import { func, shape } from 'prop-types';
|
|
import {
|
|
IntlProvider,
|
|
FormattedMessage,
|
|
FormattedDate,
|
|
FormattedHTMLMessage,
|
|
injectIntl,
|
|
} from 'react-intl';
|
|
|
|
const intlShape = shape({
|
|
formatDate: func.isRequired,
|
|
formatHTMLMessage: func.isRequired,
|
|
formatMessage: func.isRequired,
|
|
formatNumber: func.isRequired,
|
|
formatPlural: func.isRequired,
|
|
formatRelativeTime: func.isRequired,
|
|
formatTime: func.isRequired,
|
|
});
|
|
export {
|
|
IntlProvider,
|
|
FormattedMessage,
|
|
FormattedDate,
|
|
FormattedHTMLMessage,
|
|
injectIntl,
|
|
intlShape,
|
|
};
|