2x
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { CSSProperties, FC } from 'react'
|
||||
import styles from './index.module.scss'
|
||||
import classNames from 'classnames'
|
||||
|
||||
interface Props {
|
||||
className?: string
|
||||
value?: string
|
||||
style?: CSSProperties
|
||||
}
|
||||
|
||||
export const Icon: FC<Props> = (props) => {
|
||||
return <span style={props.style} className={classNames(styles.index, 'icon-' + props.value, props.className)} />
|
||||
}
|
||||
|
||||
Icon.defaultProps = {
|
||||
value: 'star',
|
||||
}
|
||||
Reference in New Issue
Block a user