2019-09-19 11:29:24 +00:00
|
|
|
import React, { Component } from "react";
|
2019-09-13 10:45:49 +00:00
|
|
|
import BaseWidget, { WidgetProps, WidgetState } from "./BaseWidget";
|
2019-11-25 05:07:27 +00:00
|
|
|
import { WidgetType } from "constants/WidgetConstants";
|
|
|
|
|
import { ActionPayload } from "constants/ActionConstants";
|
2019-09-12 08:11:25 +00:00
|
|
|
|
2019-09-19 11:29:24 +00:00
|
|
|
class AlertWidget extends Component {
|
2019-09-12 08:11:25 +00:00
|
|
|
getPageView() {
|
2019-09-13 10:45:49 +00:00
|
|
|
return <div />;
|
2019-09-12 08:11:25 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-13 10:45:49 +00:00
|
|
|
export type AlertType = "DIALOG" | "NOTIFICATION";
|
|
|
|
|
export type MessageIntent = "SUCCESS" | "ERROR" | "INFO" | "WARNING";
|
2019-09-12 08:11:25 +00:00
|
|
|
|
2019-09-13 10:45:49 +00:00
|
|
|
export interface AlertWidgetProps extends WidgetProps {
|
|
|
|
|
alertType: AlertType;
|
|
|
|
|
intent: MessageIntent;
|
|
|
|
|
header: string;
|
|
|
|
|
message: string;
|
2019-09-13 11:59:45 +00:00
|
|
|
onPrimaryClick: ActionPayload[];
|
2019-09-12 08:11:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default AlertWidget;
|