"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.Button = exports.Wrapper = void 0;

var _react = _interopRequireDefault(require("react"));

var _propTypes = _interopRequireDefault(require("prop-types"));

var _Button = require("./Button");

require("./BlankSlate.css");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Wrapper = function Wrapper(_ref) {
  var children = _ref.children,
      title = _ref.title,
      subTitle = _ref.subTitle,
      subTitle2 = _ref.subTitle2,
      bubbleImg = _ref.bubbleImg;

  var imgSrc = bubbleImg || require('../images/visual-stack/default-list-bs-img.png');

  var titleText = title || 'You do not have any content.';

  var subTitle2El = subTitle2 && _react.default.createElement("div", {
    className: "bs-subtitle"
  }, subTitle2);

  return _react.default.createElement("div", {
    className: "container-fluid vs-blankslate"
  }, _react.default.createElement("div", {
    className: "row vs-blankslate"
  }, _react.default.createElement("div", {
    className: "col-xs-1"
  }), _react.default.createElement("div", {
    className: "vs-blank-slate col-xs-10"
  }, _react.default.createElement("div", {
    className: "vs-blank-slate-img-wrapper"
  }, _react.default.createElement("div", {
    className: "vs-bs-bubble-img"
  }, _react.default.createElement("img", {
    src: imgSrc
  }))), _react.default.createElement("div", {
    className: "vs-blankslate-title"
  }, titleText), _react.default.createElement("div", {
    className: "vs-bs-subtitle"
  }, subTitle), subTitle2El, children), _react.default.createElement("div", {
    className: "col-xs-1"
  })));
};

exports.Wrapper = Wrapper;
Wrapper.propTypes = {
  title: _propTypes.default.string,
  subTitle: _propTypes.default.string,
  subTitle2: _propTypes.default.string,
  bubbleImg: _propTypes.default.string
};

var Button = function Button(_ref2) {
  var onClick = _ref2.onClick,
      text = _ref2.text;
  return _react.default.createElement("div", {
    className: "vs-bs-button-wrapper"
  }, _react.default.createElement("div", null, _react.default.createElement("h2", null, "Get started now!"), _react.default.createElement(_Button.Button, {
    className: "vs-bs-button",
    size: "lg",
    type: "primary",
    onClick: onClick
  }, _react.default.createElement("span", {
    className: "vs-bs-button-text"
  }, text || 'Create Content'))));
};

exports.Button = Button;
Button.propTypes = {
  onClick: _propTypes.default.func.isRequired,
  text: _propTypes.default.string
};
var _default = Wrapper;
exports.default = _default;