LeagueRatingItem.jsx 563 B

1234567891011121314151617
  1. // components
  2. import CustomRating from '@ui/CustomRating';
  3. const LeagueRatingItem = ({rating, max = 5, title, labelMin, labelMax}) => {
  4. return (
  5. <div className="d-flex flex-column g-4">
  6. <span className="text-12 text-700 text-header">{title}</span>
  7. <CustomRating value={rating} max={max} type="bars" />
  8. <div className="d-flex justify-content-between label h6">
  9. <span>{labelMin}</span>
  10. <span>{labelMax}</span>
  11. </div>
  12. </div>
  13. )
  14. }
  15. export default LeagueRatingItem