"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.OptionGroup = void 0;
var _react = _interopRequireDefault(require("react"));
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _ = require("../../../../..");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var StyledOptionGroup = (0, _styledComponents.default)(_.Typography).withConfig({
  displayName: "OptionGroup__StyledOptionGroup",
  componentId: "sc-1541adc-0"
})(["display:flex;align-items:center;padding-right:", "px;padding-left:", "px;padding-top:", "px;padding-bottom:", "px;color:", ";pointer-events:none;user-select:none;"], function (p) {
  return p.theme.spacing.unit(3);
}, function (p) {
  return p.theme.spacing.unit(3);
}, function (p) {
  return p.theme.spacing.unit(p.$index === 0 ? 1 : 3);
}, function (p) {
  return p.theme.spacing.unit(1);
}, function (p) {
  return p.theme.color.label;
});
var OptionGroup = exports.OptionGroup = function OptionGroup(_ref) {
  var index = _ref.index,
    label = _ref.label;
  return _react.default.createElement(StyledOptionGroup, {
    $index: index,
    type: "tertiary"
  }, label);
};