@prezly/theme-kit-react
Version:
Data layer and utility library for developing Prezly themes with NextJS
16 lines (15 loc) • 787 B
TypeScript
import type { Iso8601Date, Locale, Timezone, UnixTimestampInSeconds } from '@prezly/theme-kit-intl';
import type { TimeHTMLAttributes } from 'react';
export declare function BaseFormattedDate({ value, locale, timezone, dateFormat, ...attributes }: BaseFormattedDate.Props): import("react/jsx-runtime").JSX.Element;
export declare namespace BaseFormattedDate {
interface Props extends Omit<TimeHTMLAttributes<HTMLTimeElement>, 'dateTime'> {
value: Date | Iso8601Date | UnixTimestampInSeconds;
locale: Locale.Code;
timezone: Timezone;
/**
* Optional moment.js style date format coming from `Newsroom['date_format']`.
* When omitted, falls back to the locale's default long date format.
*/
dateFormat?: string;
}
}