"use client";
import { jsx as s } from "react/jsx-runtime";
import u, { Fragment as g } from "react";
import { BsStarFill as x, BsStar as d, BsStarHalf as h } from "../../../../../node_modules/.pnpm/react-icons@5.5.0_react@19.0.0/node_modules/react-icons/bs/index.js";
import { twMerge as B } from "../../../../../node_modules/.pnpm/tailwind-merge@3.0.1/node_modules/tailwind-merge/dist/bundle-mjs.js";
const w = (a) => {
  const {
    className: o,
    count: c,
    value: r,
    isHalf: i = !0,
    size: m,
    emptyIcon: n = d,
    halfIcon: f = h,
    fullIcon: p = x
  } = a, l = [];
  for (let e = 0; e < c; e++) {
    let t;
    i && r - e > 0 && r - e < 1 ? t = f : e < r ? t = p : t = n, l.push(
      /* @__PURE__ */ s(g, { children: u.createElement(t, {
        className: "cursor-pointer",
        size: m
      }) }, e)
    );
  }
  return /* @__PURE__ */ s("div", { className: B("flex items-center gap-0.5 text-lg text-yellow-400", o), children: l });
};
export {
  w as Rating
};
//# sourceMappingURL=rating.js.map
