"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ErrorMessage = void 0;
var _react = _interopRequireDefault(require("react"));
var _jsxRuntime = require("react/jsx-runtime");
const ErrorMessage = _ref => {
  let {
    showError,
    setShowError,
    message
  } = _ref;
  let className = "modal-wrapper error-box ";
  if (showError === true) {
    className += "show-modal-wrapper";
  }
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
    className: className,
    children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
      className: "modal-block",
      children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
        className: "confirmation-content-wrapper",
        children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
          className: "error-message notes-error-message",
          children: message
        })
      }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
        className: "btn-container",
        children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
          type: "button",
          value: "OK",
          className: "btn-toast",
          onClick: () => {
            setShowError(false);
          }
        })
      })]
    })
  });
};
exports.ErrorMessage = ErrorMessage;