"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.HelperMessages = void 0;
var _react = _interopRequireDefault(require("react"));
var _constants = require("./constants");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var HelperMessages = function HelperMessages(_ref) {
  var frame = _ref.frame,
    mode = _ref.mode,
    type = _ref.type,
    formData = _ref.formData;
  if (!frame) return /*#__PURE__*/_react["default"].createElement("div", null, "No schema provided!");
  if (!mode) return /*#__PURE__*/_react["default"].createElement("div", null, "Please include a mode - Create/ Edit/ View");
  if (mode === _constants.VIEW && !formData) return /*#__PURE__*/_react["default"].createElement("div", null, "Mode is set to View, please provide filled form data");
  if (!type) return /*#__PURE__*/_react["default"].createElement("div", null, "Please include the type of document");
  return /*#__PURE__*/_react["default"].createElement("div", null);
};
exports.HelperMessages = HelperMessages;