@botonic/react
Version:
Build Chatbots using React
11 lines • 444 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Stars = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const index_1 = require("./icons/index");
const Stars = ({ color, ratingNumber, hover }) => {
const isSelected = hover >= ratingNumber;
return (0, jsx_runtime_1.jsx)(index_1.StarSvg, { color: color, selected: isSelected });
};
exports.Stars = Stars;
//# sourceMappingURL=stars.js.map