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.
31 lines
757 B
31 lines
757 B
import { StarIcon } from "@heroicons/react/24/solid";
|
|
import React, { FC } from "react";
|
|
|
|
export interface StartRatingProps {
|
|
className?: string;
|
|
point?: number;
|
|
reviewCount?: number;
|
|
}
|
|
|
|
const StartRating: FC<StartRatingProps> = ({
|
|
className = "",
|
|
point = 4.5,
|
|
reviewCount = 112,
|
|
}) => {
|
|
return (
|
|
<div
|
|
className={`nc-StartRating flex items-center space-x-1 text-sm ${className}`}
|
|
data-nc-id="StartRating"
|
|
>
|
|
<div className="pb-[2px]">
|
|
<StarIcon className="w-[18px] h-[18px] text-orange-500" />
|
|
</div>
|
|
<span className="font-medium ">{point}</span>
|
|
<span className="text-neutral-500 dark:text-neutral-400">
|
|
({reviewCount})
|
|
</span>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default StartRating;
|