import { jsxs as I, jsx as t } from "react/jsx-runtime";
import { forwardRef as y } from "react";
import N from "../../utils/classNames.js";
const s = {
  AVAILABLE: "available",
  DRIVING: "driving",
  RESTING: "resting",
  WORKING: "working"
}, v = {
  [s.AVAILABLE]: "rioglyph-status-available",
  [s.WORKING]: "rioglyph-status-working",
  [s.DRIVING]: "rioglyph-status-driving",
  [s.RESTING]: "rioglyph-status-resting"
}, d = { SIZE_SM: "sm", SIZE_LG: "lg", SIZE_XL: "xl" }, c = y((e, o) => {
  const {
    activity: i,
    duration: a,
    isOutdated: l = !1,
    bsSize: r,
    onClick: p = () => {
    },
    className: n = "",
    ...g
  } = e;
  if (!i)
    return null;
  const m = N(
    "activity",
    `activity-${i}`,
    l && "opacity-50",
    r && `activity-${r}`,
    n && n
  );
  return /* @__PURE__ */ I("div", { ref: o, ...g, className: m, onClick: p, children: [
    /* @__PURE__ */ t("span", { className: "activity-icon", children: /* @__PURE__ */ t("span", { className: `rioglyph ${v[i]}` }) }),
    a && /* @__PURE__ */ t("span", { className: "activity-text", children: a })
  ] });
});
Object.assign(c, s);
Object.assign(c, d);
export {
  c as default
};
//# sourceMappingURL=Activity.js.map
