@helpwave/hightide
Version:
helpwave's component and theming library
21 lines (18 loc) • 738 B
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { PropsForTranslation } from '../../localization/useTranslation.mjs';
import { TimeTranslationType } from '../../localization/defaults/time.mjs';
import '../../localization/util.mjs';
type TimeDisplayTranslationType = TimeTranslationType & {
inDays: string;
agoDays: string;
};
type TimeDisplayMode = 'daysFromToday' | 'date';
type TimeDisplayProps = {
date: Date;
mode?: TimeDisplayMode;
};
/**
* A Component for displaying time and dates in a unified fashion
*/
declare const TimeDisplay: ({ overwriteTranslation, date, mode }: PropsForTranslation<TimeDisplayTranslationType, TimeDisplayProps>) => react_jsx_runtime.JSX.Element;
export { TimeDisplay };