
import hongxin from '@/assets/icons/housemantj/已收藏.png'
import baixin from '@/assets/icons/housemantj/收藏.png'
import './Star.less'
export default (props) => {
  const {star}=props
  return (
    <>
      <image className='star' src={star >= 1 ? hongxin : baixin}></image>
      <image className='star' src={star >= 2 ? hongxin : baixin}></image>
      <image className='star' src={star >= 3 ? hongxin : baixin}></image>
      <image className='star' src={star >= 4 ? hongxin : baixin}></image>
      <image className='star' src={star >= 5 ? hongxin : baixin}></image>
    </>
  )
}