"use strict";

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

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

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

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

var React = _interopRequireWildcard(require("react"));

var _styledComponents = _interopRequireDefault(require("styled-components"));

var _interpolation = require("../../Tools/interpolation");

//  strict
var Wrapper =
/*#__PURE__*/
_styledComponents.default.div.withConfig({
  componentId: "vktxnn-0"
})(["\n  display: flex;\n  flex-direction: row;\n  justify-content: center;\n  align-items: center;\n  width: ", ";\n  min-height: ", ";\n  border-bottom: 0.125rem solid ", ";\n  box-sizing: border-box;\n"], (0, _interpolation.prop)('width'), (0, _interpolation.prop)('height'), (0, _interpolation.theme)('tabMenuBorderColor'));

var Container =
/*#__PURE__*/
_styledComponents.default.div.withConfig({
  componentId: "vktxnn-1"
})(["\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: space-between;\n  width: 100%;\n  min-height: 100%;\n\n  @media (max-width: ", ") {\n    & > .disabled {\n      display: ", ";\n    }\n  }\n\n  @media (min-width: ", ") {\n    flex-direction: row;\n    align-items: center;\n  }\n"], (0, _interpolation.screenSize)('sm'), function (props) {
  return props.toggled === true ? 'flex' : 'none';
}, (0, _interpolation.screenSize)('sm'));

var TabMenu = function TabMenu(_ref) {
  var children = _ref.children,
      toggled = _ref.toggled,
      rest = (0, _objectWithoutProperties2.default)(_ref, ["children", "toggled"]);
  return React.createElement(Wrapper, rest, React.createElement(Container, {
    toggled: toggled
  }, children));
};

TabMenu.propTypes = process.env.NODE_ENV !== "production" ? {
  children: _propTypes.default.node,
  height: _propTypes.default.string,
  toggled: _propTypes.default.bool,
  width: _propTypes.default.string
} : {};
TabMenu.defaultProps = {
  height: '3rem',
  toggled: false,
  width: '100%'
};
var _default = TabMenu;
exports.default = _default;