import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React from "react";
import { Cascader } from "@alicloudfe/components";
import cls from "classnames";
import BDesignTheme from '../theme';

var BDesignCascader = function BDesignCascader(props) {
  var className = props.className,
      theme = props.theme,
      _props$expandTriggerT = props.expandTriggerType,
      expandTriggerType = _props$expandTriggerT === void 0 ? 'hover' : _props$expandTriggerT,
      rest = _objectWithoutProperties(props, ["className", "theme", "expandTriggerType"]);

  return /*#__PURE__*/React.createElement(BDesignTheme, {
    theme: theme
  }, function (theme) {
    return /*#__PURE__*/React.createElement(Cascader, _extends({
      expandTriggerType: expandTriggerType,
      className: cls(className, {
        "next-cascader-dark": theme === 'dark'
      })
    }, rest));
  });
};

export default BDesignCascader;