UNPKG

@stanfordspezi/spezi-web-design-system

Version:

Stanford Biodesign Digital Health Spezi Web Design System

18 lines (17 loc) 556 B
import { ComponentProps } from 'react'; interface NotificationTimeProps extends ComponentProps<"time"> { time: Date; } /** * Component responsible for rendering time in a notification * with proper formatting and styling based on read status. * * Time is displayed in the user's locale format, including both date and time. * * @example * ```ts * <NotificationTime time={new Date("2024-01-01T12:00:00")} /> * ``` */ export declare const NotificationTime: ({ time, ...props }: NotificationTimeProps) => import("react").JSX.Element; export {};