You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
553 B

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>
);
}
}