import { When as e, attr as i, aria as u, computedOf as b } from "@tempots/dom";
import { T as m, a as d } from "./toolbar-Pdj-F80l.js";
import { I as f } from "./translations-BGblCUBj.js";
function v(t) {
  const { active: o, display: a, onClick: n, disabled: s, label: l, icon: c, size: r } = t;
  return e(
    a,
    () => m(
      {
        onClick: n,
        disabled: s,
        size: r
      },
      i.class(o.map((p) => p ? "bc-toolbar__button--active" : "")),
      u.pressed(o),
      i.title(l),
      f({ icon: c, size: r })
    )
  );
}
function G({
  display: t
}, ...o) {
  return e(
    b(...t)((...a) => a.some(Boolean)),
    () => d(...o)
  );
}
export {
  v as E,
  G as a
};
