PromucFlow_constructor/app/client/src/widgets/AlertWidget.tsx

21 lines
465 B
TypeScript
Raw Normal View History

import React, { Component } from "react";
2020-02-18 10:41:52 +00:00
import { WidgetProps } from "./BaseWidget";
2019-09-12 08:11:25 +00:00
class AlertWidget extends Component {
2019-09-12 08:11:25 +00:00
getPageView() {
return <div />;
2019-09-12 08:11:25 +00:00
}
}
export type AlertType = "DIALOG" | "NOTIFICATION";
export type MessageIntent = "SUCCESS" | "ERROR" | "INFO" | "WARNING";
2019-09-12 08:11:25 +00:00
export interface AlertWidgetProps extends WidgetProps {
alertType: AlertType;
intent: MessageIntent;
header: string;
message: string;
2019-09-12 08:11:25 +00:00
}
export default AlertWidget;