"use strict";

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

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

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

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

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

var _Icons = require("../../Atoms/Icons");

//  strict
var TogglerExpand =
/*#__PURE__*/
(0, _styledComponents.default)(_Icons.FasTimes).attrs({
  selectable: true,
  size: '20px'
}).withConfig({
  componentId: "sc-1til0ak-0"
})(["\n  z-index: 15;\n  fill: ", " !important;\n\n  &:hover {\n    fill: ", " !important;\n  }\n\n  @media (min-width: ", ") {\n    display: none;\n  }\n"], function (props) {
  return props.theme.navbarTogglerColor;
}, function (props) {
  return props.theme.navbarTogglerColor;
}, function (props) {
  return props.theme.screenSizes.sm;
});
var TogglerCollapse =
/*#__PURE__*/
(0, _styledComponents.default)(_Icons.FasBars).attrs({
  selectable: true,
  size: '25px'
}).withConfig({
  componentId: "sc-1til0ak-1"
})(["\n  z-index: 15;\n  fill: ", " !important;\n\n  &:hover {\n    fill: ", " !important;\n  }\n\n  @media (min-width: ", ") {\n    display: none;\n  }\n"], function (props) {
  return props.theme.navbarTogglerColor;
}, function (props) {
  return props.theme.navbarTogglerColor;
}, function (props) {
  return props.theme.screenSizes.sm;
});

var NavbarToggler = function NavbarToggler(_ref) {
  var onToggle = _ref.onToggle,
      toggled = _ref.toggled;
  return toggled === true ? _react.default.createElement(TogglerExpand, {
    onClick: onToggle
  }) : _react.default.createElement(TogglerCollapse, {
    onClick: onToggle
  });
};

NavbarToggler.propTypes = process.env.NODE_ENV !== "production" ? {
  onToggle: _propTypes.default.func.isRequired,
  toggled: _propTypes.default.bool
} : {};
NavbarToggler.defaultProps = {
  toggled: false
};
var _default = NavbarToggler;
exports.default = _default;