UNPKG

@prezly/theme-kit-react

Version:

Data layer and utility library for developing Prezly themes with NextJS

16 lines (15 loc) 782 B
import type { Iso8601Date, Locale, Timezone, UnixTimestampInSeconds } from '@prezly/theme-kit-intl'; import type { TimeHTMLAttributes } from 'react'; export declare function BaseFormattedTime({ value, locale, timezone, timeFormat, ...attributes }: BaseFormattedTime.Props): import("react/jsx-runtime").JSX.Element; export declare namespace BaseFormattedTime { interface Props extends Omit<TimeHTMLAttributes<HTMLTimeElement>, 'dateTime'> { value: Date | Iso8601Date | UnixTimestampInSeconds; locale: Locale.Code; timezone: Timezone; /** * Optional moment.js style time format coming from `Newsroom['time_format']`. * When omitted, falls back to the locale's default time format. */ timeFormat?: string; } }