UNPKG

rap-react

Version:

To make it easy for you to get started with GitLab, here's a list of recommended next steps.

43 lines (42 loc) 1.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.ErrorMessage = void 0; 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; var _default = exports.default = ErrorMessage;