import classnames from 'classnames' ; import { BaseComponentProps } from '@models/BaseProps' ; import './style.scss' ; interface TagProps extends BaseComponentProps { color ? : string ; } export function Tag ( props ) { const { color , className : cn , style : s } = props ; const className = classnames ( 'tag' , cn ) ; const style = { color , ... s } ; const spanProps = { ... props , className , style } ; return < span { ... spanProps } > { props . children } < /span>; }