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.

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