diff --git a/src/components/StartRating.tsx b/src/components/StartRating.tsx new file mode 100644 index 0000000..d090479 --- /dev/null +++ b/src/components/StartRating.tsx @@ -0,0 +1,31 @@ +import { StarIcon } from "@heroicons/react/24/solid"; +import React, { FC } from "react"; + +export interface StartRatingProps { + className?: string; + point?: number; + reviewCount?: number; +} + +const StartRating: FC = ({ + className = "", + point = 4.5, + reviewCount = 112, +}) => { + return ( +
+
+ +
+ {point} + + ({reviewCount}) + +
+ ); +}; + +export default StartRating;