tfwm-travel-updates-widget
Version:
A shareable travel updates (disruptions) widget which is shown on the TfWM homepage
17 lines (14 loc) • 469 B
text/typescript
// Types
import { TransformedModes } from 'sharedTypes';
import { DefaultModes } from './modes';
export type DisruptionSeverity = 'none' | 'normal' | 'high' | 'veryHigh' | undefined;
export type DisruptionIndicatorTypes = {
id: string;
disruptionSeverity: DisruptionSeverity;
disruptionUrlSearchParams?: string;
formatDisruptionIndicatorText?: boolean;
indicatorText: string;
optionalText?: string;
modalIcon: TransformedModes;
mode: DefaultModes;
};