UNPKG

react-intl

Version:

Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.

11 lines (10 loc) 461 B
import * as React from 'react'; import { FormatDateOptions } from '@formatjs/intl'; import { DateTimeFormat } from '@formatjs/ecma402-abstract'; interface Props extends FormatDateOptions { from: Parameters<DateTimeFormat['formatRange']>[0]; to: Parameters<DateTimeFormat['formatRange']>[1]; children?(value: React.ReactNode): React.ReactElement | null; } declare const FormattedDateTimeRange: React.FC<Props>; export default FormattedDateTimeRange;