"use strict";

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

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

var _classnames = _interopRequireDefault(require("classnames"));

require("./index.css");

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

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var preCls = "like-search-dropdown";

function SearchDropDown(props) {
  var children = props.children,
      maxWidth = props.maxWidth,
      _props$noRightLine = props.noRightLine,
      noRightLine = _props$noRightLine === void 0 ? false : _props$noRightLine;
  return /*#__PURE__*/_react["default"].createElement("span", {
    className: (0, _classnames["default"])(preCls, _defineProperty({}, "".concat(preCls, "-noRightLine"), noRightLine))
  }, /*#__PURE__*/_react["default"].createElement("span", {
    className: "".concat(preCls, "__text"),
    style: {
      maxWidth: maxWidth
    }
  }, children), /*#__PURE__*/_react["default"].createElement("span", {
    className: "tu-icon-arrow-down1 ".concat(preCls, "-arrow")
  }));
}

var _default = SearchDropDown;
exports["default"] = _default;