import { Image } from '@tarojs/components'
import Icon from '@/images/svgs/icon-star-color.svg'
import IconWhite from '@/images/svgs/icon-star.svg'
import IconBlue from '@/images/svgs/icon-star-blue.svg'
interface IProps {
  color?: 'blue' | 'white' | 'colorful'
}
export default (props: IProps) => {
  if(props.color === 'blue') return <Image src={IconBlue} mode="widthFix" style={{width: '16px', height: '16px'}}></Image>
  if(props.color === 'white') return <Image src={IconWhite} mode="widthFix" style={{width: '16px', height: '16px'}}></Image>
  return (
    <Image src={Icon} mode="widthFix" style={{width: '16px', height: '16px'}}></Image>
  )
}
