forked from Gitlink/forgeplus-react
19 lines
345 B
JavaScript
19 lines
345 B
JavaScript
import React, { PureComponent } from 'react';
|
|
|
|
class Index extends PureComponent {
|
|
|
|
render() {
|
|
const { icon , count = 0 , ...props } = this.props;
|
|
|
|
return (
|
|
<span {...props}>
|
|
<i className={icon}></i>
|
|
<span className={'span-text'}>
|
|
{count}
|
|
</span>
|
|
</span>
|
|
)
|
|
}
|
|
}
|
|
|
|
export default Index; |