import _extends from"babel-runtime/helpers/extends";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";var __rest=this&&this.__rest||function(e,r){var t={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&r.indexOf(s)<0&&(t[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)r.indexOf(s[a])<0&&(t[s[a]]=e[s[a]])}return t};import*as React from"react";import*as PropTypes from"prop-types";var BreadcrumbItem=function(e){function r(){return _classCallCheck(this,r),_possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return _inherits(r,e),_createClass(r,[{key:"render",value:function(){var e=this.props,r=e.prefixCls,t=e.separator,s=e.children,a=__rest(e,["prefixCls","separator","children"]),o=void 0;return o="href"in this.props?React.createElement("a",_extends({className:r+"-link"},a),s):React.createElement("span",_extends({className:r+"-link"},a),s),s?React.createElement("span",null,o,React.createElement("span",{className:r+"-separator"},t)):null}}]),r}(React.Component);export default BreadcrumbItem;BreadcrumbItem.__ANT_BREADCRUMB_ITEM=!0,BreadcrumbItem.defaultProps={prefixCls:"dt-breadcrumb",separator:"/"},BreadcrumbItem.propTypes={prefixCls:PropTypes.string,separator:PropTypes.oneOfType([PropTypes.string,PropTypes.element]),href:PropTypes.string};