import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
//  strict
import PropTypes from 'prop-types';
import * as React from 'react';
import styled from 'styled-components';
import { prop, screenSize, theme } from '../../Tools/interpolation';
var Wrapper =
/*#__PURE__*/
styled.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"], prop('width'), prop('height'), theme('tabMenuBorderColor'));
var Container =
/*#__PURE__*/
styled.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"], screenSize('sm'), function (props) {
  return props.toggled === true ? 'flex' : 'none';
}, screenSize('sm'));

var TabMenu = function TabMenu(_ref) {
  var children = _ref.children,
      toggled = _ref.toggled,
      rest = _objectWithoutProperties(_ref, ["children", "toggled"]);

  return React.createElement(Wrapper, rest, React.createElement(Container, {
    toggled: toggled
  }, children));
};

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