"use strict";

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

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

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

var _reactSelect = require("react-select");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var ControlComponent = function ControlComponent(props) {
  var selectProps = props.selectProps;
  return _react.default.createElement("div", {
    style: selectProps.floatingLabelStyles
  }, _react.default.createElement("p", {
    style: selectProps.floatingLabelTextStyles
  }, selectProps.floatingLabelText), _react.default.createElement(_reactSelect.components.Control, props));
};

exports.ControlComponent = ControlComponent;
ControlComponent.propTypes = process.env.NODE_ENV !== "production" ? {
  selectProps: _propTypes.default.object.isRequired
} : {};
var _default = ControlComponent;
exports.default = _default;