lms/public/build/assets/rating-stars-DYjrA02Q.js
2025-12-15 12:26:23 +01:00

2 lines
449 B
JavaScript

import{j as e,w as l}from"./vendor-BKmmeuxg.js";import{c as r}from"./utils-DxSsnXxD.js";const p=({rating:o,starClass:a,wrapperClass:n})=>{const c=i=>{const t=[],x=Math.floor(i);for(let s=0;s<5;s++)s<x?t.push(e.jsx(l,{className:r("h-5 w-5 fill-yellow-400 text-yellow-400",a)},s)):t.push(e.jsx(l,{className:r("h-5 w-5 text-yellow-400",a)},s));return t};return e.jsx("div",{className:r("flex items-center gap-[1px]",n),children:c(o)})};export{p as R};