import React from "react"; import "./alert-bar-styles.scss"; import { AlertBarProps } from "@app/models/components"; import { CancelIcon, CheckCircleIconOutlined, CloseIcon, } from "@app/assets/images/icons"; const AlertBar: React.FC = ({ message, variant = "error", className = "", actionText, onAction, actionDisabled = false, onDismiss, }) => { return (
{variant === "success" ? CheckCircleIconOutlined : CancelIcon} {message} {actionText && ( )} {onDismiss && ( )}
); }; export default AlertBar;