"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _ui = require("@mirai/ui");
var _react = _interopRequireDefault(require("react"));
var _shared__ = require("../__shared__");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
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); }
const BannerSkeleton = _ref => {
  let others = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
  const {
    isMobile
  } = (0, _ui.useDevice)();
  return /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, _extends({}, others, {
    base: true
  }), /*#__PURE__*/_react.default.createElement(_ui.View, {
    color: "accent",
    row: true,
    style: {
      borderBottom: 'solid 1px var(--mirai-ui-content-background)',
      justifyContent: 'space-between',
      padding: 'var(--mirai-ui-space-M)'
    }
  }, /*#__PURE__*/_react.default.createElement(_ui.View, {
    style: {
      gap: '0.25rem'
    }
  }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    words: 2
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    action: true,
    words: 13
  })), !isMobile && /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    words: 4
  })), !isMobile && /*#__PURE__*/_react.default.createElement(_ui.View, {
    row: true,
    style: {
      gap: '4rem',
      padding: '1.5rem var(--mirai-ui-space-M)'
    },
    wide: true
  }, Array.from({
    length: 4
  }).map((_, index) => /*#__PURE__*/_react.default.createElement(_ui.View, {
    row: true,
    key: index,
    style: {
      gap: 'var(--mirai-ui-space-M)'
    }
  }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    icon: true
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    action: true,
    words: 7
  })))), isMobile && /*#__PURE__*/_react.default.createElement(_ui.View, {
    row: true,
    style: {
      justifyContent: 'space-between',
      padding: 'var(--mirai-ui-space-M)'
    }
  }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    action: true,
    words: 4
  }), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, {
    icon: true
  })));
};
BannerSkeleton.displayName = 'Mirai:Core:Banner:Skeleton';
BannerSkeleton.propTypes = {};
var _default = exports.default = BannerSkeleton;
//# sourceMappingURL=Banner.skeleton.js.map