import _extends from"babel-runtime/helpers/extends";import _defineProperty from"babel-runtime/helpers/defineProperty";import*as React from"react";import classNames from"classnames";import omit from"omit.js";var Icon=function(e){var r,t=e.type,o=e.className,i=void 0===o?"":o,n=e.spin,s=e.prev,a=s?"dtdicon-"+t:"icon-"+t,m=classNames((_defineProperty(r={},s||"icon",!0),_defineProperty(r,"icon-spin",!!n||"loading"===t||t.indexOf("loading")>-1),_defineProperty(r,a,!0),r),i);return React.createElement("i",_extends({},omit(e,["type","spin"]),{className:m}))};export default Icon;