import classnames from "classnames";
import React from "react";
import { CloseIcon } from "../Icons/index.js";
import styles from "../statics/styles/toast-scss.js";
const Toast = ({ isMobile, isError, message, onClose }) => {
  const backgroundColor = isError ? styles.error : styles.success;
  const style = classnames(styles.toastContainer, isMobile && styles.mobile, backgroundColor);
  return /* @__PURE__ */ React.createElement("div", { className: style }, onClose && /* @__PURE__ */ React.createElement(CloseIcon, { className: styles.close, onClick: onClose }), message);
};
export {
  Toast
};
//# sourceMappingURL=toast.js.map
