@expofp/floorplan
Version:
Interactive floor plan library for expos and events
15 lines • 628 B
TypeScript
export type EventStatus = 'live' | 'upcoming' | 'starting-soon' | 'past' | 'none';
interface TimeUntilStartData {
minutes: number;
seconds: number;
totalSeconds: number;
isLessThan10Minutes: boolean;
}
export declare function calculateTimeUntilStart(startDate: string, now: number): TimeUntilStartData;
export declare function getEventStatus(event: {
startDate: string;
endDate?: string;
}, now: number, timeUntil: TimeUntilStartData): EventStatus;
export declare function getEventStatusLabel(status: EventStatus, timeUntil: TimeUntilStartData): string;
export {};
//# sourceMappingURL=eventTime.d.ts.map