@medalsocial/meda
Version:
Shared Meda UI shell and runtime package.
12 lines (11 loc) • 468 B
TypeScript
export interface DateSwitcherProps {
/** Currently selected date. */
value: Date;
/** Reference for "today" comparison and forward-disable. */
now: Date;
/** IANA timezone for "same day" / display semantics. Defaults to local. */
tz?: string;
onChange: (next: Date) => void;
className?: string;
}
export declare function DateSwitcher({ value, now, tz, onChange, className }: DateSwitcherProps): import("react/jsx-runtime").JSX.Element;