import React from 'react' import { StarIcon as Star } from '../../icon/starIcon' import { StyledStars } from './Stars.style' export type StarsProps = Readonly<{ stars: number }> const MIN_STARS = 0 const MAX_STARS = 5 const ValidateStars = (star: number) => !(star < MIN_STARS || star > MAX_STARS) const StarIcon = ({ offset }: { offset: number }) => (