@nexusui/components
Version:
These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.
36 lines (35 loc) • 912 B
TypeScript
/**
* @description Possible matching translation string below to avoid detecting of translation keys
* a few seconds ago
* a few seconds from now
* 1 minute ago
* 1 minute from now
* {{0}} minutes ago
* {{0}} minutes from now
* 1 hour ago
* 1 hour from now
* {{0}} hours ago
* {{0}} hours from now
* 1 day ago
* 1 day from now
* {{0}} days ago
* {{0}} days from now
* 1 week ago
* 1 week from now
* {{0}} weeks ago
* {{0}} weeks from now
* 1 month ago
* 1 month from now
* {{0}} months ago
* {{0}} months from now
* 1 year ago
* 1 year from now
* {{0}} years ago
* {{0}} years from now
*/
import { TranslateFuncType } from '../models';
export declare const fromNow: (date: Date, t: TranslateFuncType) => string;
export declare const useTimeFormat: () => {
fromNowFormat: (date?: number | string | Date) => string;
fullTimeFormat: (date?: number | string | Date) => string;
};