mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-10 13:29:11 +08:00
24 lines
552 B
JavaScript
24 lines
552 B
JavaScript
import React from 'react';
|
|
import classNames from 'classnames';
|
|
import CopyableIcon from './CopyableIcon';
|
|
|
|
export default class IconSet extends React.Component {
|
|
static defaultProps = {
|
|
icons: []
|
|
}
|
|
|
|
render() {
|
|
const className = this.props.className;
|
|
const listClassName = classNames({
|
|
'anticons-list': true,
|
|
clearfix: true,
|
|
[className]: !!className,
|
|
});
|
|
return (
|
|
<ul className={listClassName}>
|
|
{this.props.icons.map((type, i) => <CopyableIcon key={i} type={type} />)}
|
|
</ul>
|
|
);
|
|
}
|
|
}
|