import React, { FC } from 'react' import rangeMap from '@lib/range-map' import { Star } from '@components/icons' import cn from 'classnames' export interface RatingProps { value: number } const Quantity: React.FC = React.memo(({ value = 5 }) => { return (
{rangeMap(5, (i) => ( = Math.floor(value), })} > ))}
) }) export default Quantity