"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _extends2=require("babel-runtime/helpers/extends"),_extends3=_interopRequireDefault(_extends2),_defineProperty2=require("babel-runtime/helpers/defineProperty"),_defineProperty3=_interopRequireDefault(_defineProperty2),_react=require("react"),React=_interopRequireWildcard(_react),_classnames=require("classnames"),_classnames2=_interopRequireDefault(_classnames),_omit=require("omit.js"),_omit2=_interopRequireDefault(_omit);function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var Icon=function(e){var r,t=e.type,i=e.className,n=void 0===i?"":i,a=e.spin,o=e.prev,u=o?"dtdicon-"+t:"icon-"+t,l=o||"icon",s=(0,_classnames2.default)((r={},(0,_defineProperty3.default)(r,l,!0),(0,_defineProperty3.default)(r,"icon-spin",!!a||"loading"===t||-1<t.indexOf("loading")),(0,_defineProperty3.default)(r,u,!0),r),n);return React.createElement("i",(0,_extends3.default)({},(0,_omit2.default)(e,["type","spin"]),{className:s}))};exports.default=Icon,module.exports=exports.default;