import _defineProperty from"babel-runtime/helpers/defineProperty";import _classCallCheck from"babel-runtime/helpers/classCallCheck";import _createClass from"babel-runtime/helpers/createClass";import _possibleConstructorReturn from"babel-runtime/helpers/possibleConstructorReturn";import _inherits from"babel-runtime/helpers/inherits";import*as React from"react";import classNames from"classnames";var Switcher=function(e){function r(e){return _classCallCheck(this,r),_possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e))}return _inherits(r,e),_createClass(r,[{key:"render",value:function(){var e=this.props,r=e.collapsed,t=e.onClick,s=e.className,a=e.style,l=e.prefixCls;return React.createElement("div",{onClick:t,style:a,className:classNames(s,l+"-switcher",_defineProperty({},l+"-switcher-collapsed",r))},React.createElement("i",{className:"sidebar-fold"}))}}]),r}(React.PureComponent);export default Switcher;Switcher.defaultProps={prefixCls:"dt-sidebar",className:"",SidebarState:!1,onClick:function(){}};