mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 19:50:05 +08:00
11 lines
307 B
TypeScript
11 lines
307 B
TypeScript
import React from 'react';
|
|
import splitObject from '../_util/splitObject';
|
|
|
|
export default props => {
|
|
const [{type, className = ''}, others] = splitObject(props,
|
|
['type','className']);
|
|
|
|
let className2 = `${className} anticon anticon-${type}`;
|
|
return <i className={className2} {...others} />;
|
|
};
|