@brizy/ui
Version:
React elements in Brizy style
15 lines (14 loc) • 596 B
JavaScript
import React from "react";
import { TypographyText } from "../Typography";
import { Icon } from "../Icon";
import { Star } from "../icons";
import { BRZ_PREFIX } from "../constants";
export const SmallRating = ({ rating, ratingItems }) => (React.createElement("div", { className: `${BRZ_PREFIX}-small-rating` },
React.createElement(Icon, { color: "orange", hoverColor: "orange", source: Star, size: "12px" }),
" ",
rating,
" ",
React.createElement(TypographyText, { size: "small", color: "gray-mid", hoverColor: "gray-mid" },
"(",
ratingItems,
")")));