UNPKG

@brizy/ui

Version:
13 lines (12 loc) 543 B
import AntAlert5 from "antd-v5/lib/alert"; import React from "react"; export var AlertType; (function (AlertType) { AlertType["success"] = "success"; AlertType["info"] = "info"; AlertType["warning"] = "warning"; AlertType["error"] = "error"; })(AlertType || (AlertType = {})); export const AlphaAlert = ({ message, type = AlertType.success, closable, description, showIcon }) => { return React.createElement(AntAlert5, { message: message, type: type, closable: closable, description: description, showIcon: showIcon }); };