You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
466 B
19 lines
466 B
import React from 'react' |
|
import StarIcon from '@mui/icons-material/Star'; |
|
import Rating from '@mui/material/Rating'; |
|
|
|
|
|
|
|
export default function StyledRating({rate} : any) { |
|
return ( |
|
<> |
|
<Rating |
|
name="customized-color" |
|
defaultValue={rate} |
|
precision={0.5} |
|
icon={<StarIcon style={{ fontSize : 25, color : '#FFED00' }} />} |
|
emptyIcon={<StarIcon style={{ fontSize : 25, color : '#494949' }} />} |
|
/> |
|
</> |
|
) |
|
}
|
|
|