"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Empty = Empty;
var _styles = require("./styles");
var _reactNative = require("react-native");
var _Typography = require("../../../core/components/Typography/Typography");
var _reactNativeSvg = require("react-native-svg");
var _emptyList = _interopRequireDefault(require("../../../core/assets/icons/emptyList"));
var _icons = require("../../../core/assets/icons");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
function Empty({
  heightPercent = 0.3,
  children,
  ...props
}) {
  const {
    styles
  } = (0, _styles.useStyle)();
  const dimension = _reactNative.Dimensions.get('window');
  return /*#__PURE__*/React.createElement(_reactNative.View, _extends({}, props, {
    style: [styles.container, {
      minHeight: dimension.height * heightPercent
    }]
  }), children);
}
const EMPTY_ICONS = {
  list: (0, _emptyList.default)(),
  post: (0, _icons.emptyPost)(),
  private: (0, _icons.privateFeed)(),
  image: (0, _icons.emptyImagePost)(),
  video: (0, _icons.emptyVideoPost)(),
  block: (0, _icons.block)(),
  review: (0, _icons.firework)()
};
function EmptyContent({
  title,
  icon,
  description
}) {
  const {
    styles,
    theme
  } = (0, _styles.useStyle)();
  return /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.contentContainer
  }, /*#__PURE__*/React.createElement(_reactNativeSvg.SvgXml, {
    width: 60,
    height: 60,
    xml: icon ? EMPTY_ICONS[icon] : undefined,
    color: theme.colors.baseShade4
  }), /*#__PURE__*/React.createElement(_reactNative.View, null, /*#__PURE__*/React.createElement(_Typography.Typography.TitleBold, {
    style: styles.title
  }, title), description && /*#__PURE__*/React.createElement(_Typography.Typography.Caption, {
    style: styles.description
  }, description)));
}
Empty.Content = EmptyContent;
//# sourceMappingURL=Empty.js.map