import * as tslib_1 from "tslib";
import * as React from 'react';
import classNames from 'classnames';
var defaultProps = {
    prefixCls: 'ty-icon',
};
var Icon = function (props) {
    var _a;
    var type = props.type, color = props.color, size = props.size, style = props.style, spin = props.spin, className = props.className, prefixCls = props.prefixCls;
    var cls = classNames(prefixCls, "ty--" + type, (_a = {}, _a[prefixCls + "_spin"] = spin, _a), className);
    return (React.createElement("i", { className: cls, style: tslib_1.__assign({ color: color, fontSize: size }, style) }));
};
Icon.defaultProps = defaultProps;
export default Icon;
//# sourceMappingURL=index.js.map