@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
18 lines (17 loc) • 645 B
TypeScript
export interface EmergencyAlertProps {
/** A string that controls different color themes for the component. */
theme?: "c-warning" | "c-primary-alt" | "c-primary" | "c-gray" | "c-error";
/** A message describing the event. */
message: string;
/** A string representing the time of the event. */
timeStamp?: string;
/** An optional function whose return value is a link to take the user to page with more information. */
link?(...args: unknown[]): unknown;
}
declare const EmergencyAlert: {
(props: EmergencyAlertProps): any;
defaultProps: {
theme: string;
};
};
export default EmergencyAlert;