This commit is contained in:
lblblong
2021-10-12 16:59:32 +08:00
commit d3c3707852
70 changed files with 22809 additions and 0 deletions
+17
View File
@@ -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',
}