"use strict";

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

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

var _classnames = _interopRequireDefault(require("classnames"));

require("./index.css");

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

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var prefixCls = 'titaui-mirroring';

var Mirroring = function Mirroring(props) {
  var _classNames, _classNames2;

  var _props$className = props.className,
      className = _props$className === void 0 ? '' : _props$className,
      children = props.children,
      mirrorSwitch = props.mirrorSwitch,
      style = props.style;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])(prefixCls, className),
    style: style
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])("".concat(prefixCls, "__item"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "__item--visible"), mirrorSwitch === 'off'), _defineProperty(_classNames, "".concat(prefixCls, "__item--hidden"), mirrorSwitch === 'on'), _classNames))
  }, children[0]), /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])("".concat(prefixCls, "__item"), (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "__item--visible"), mirrorSwitch === 'on'), _defineProperty(_classNames2, "".concat(prefixCls, "__item--hidden"), mirrorSwitch === 'off'), _classNames2))
  }, children[1]));
};

var _default = Mirroring;
exports["default"] = _default;