"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 _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

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 _Text = _interopRequireDefault(require("../../Atoms/Typography/Text"));

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

var Wrapper =
/*#__PURE__*/
(0, _styledComponents.default)(_Text.default).withConfig({
  componentId: "sc-11zjji7-0"
})(["\n  color: ", ";\n\n  @media (min-width: ", ") {\n    color: ", ";\n  }\n"], (0, _interpolation.theme)('navbarDropdownTitleMobileColor'), (0, _interpolation.screenSize)('sm'), (0, _interpolation.theme)('navbarDropdownTitleColor'));

var NavbarDropdownItemTitle = function NavbarDropdownItemTitle(_ref) {
  var children = _ref.children,
      rest = (0, _objectWithoutProperties2.default)(_ref, ["children"]);
  return React.createElement(Wrapper, (0, _extends2.default)({
    size: "1rem",
    weight: 600
  }, rest), children);
};

NavbarDropdownItemTitle.propTypes = process.env.NODE_ENV !== "production" ? {
  children: _propTypes.default.node
} : {};
var _default = NavbarDropdownItemTitle;
exports.default = _default;