import _extends from"babel-runtime/helpers/extends";import _defineProperty from"babel-runtime/helpers/defineProperty";var __rest=this&&this.__rest||function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(e);s<i.length;s++)r.indexOf(i[s])<0&&(t[i[s]]=e[i[s]])}return t};import*as React from"react";import classNames from"classnames";export default function Divider(e){var r,t=e.prefixCls,i=void 0===t?"dt":t,s=e.type,a=void 0===s?"horizontal":s,n=e.className,d=e.children,o=e.dashed,l=__rest(e,["prefixCls","type","className","children","dashed"]),c=classNames(n,i+"-divider",i+"-divider-"+a,(_defineProperty(r={},i+"-divider-with-text",d),_defineProperty(r,i+"-divider-dashed",!!o),r));return React.createElement("div",_extends({className:c},l),d&&React.createElement("span",{className:i+"-divider-inner-text"},d))};