"use strict";const o=require("@tempots/dom"),n=require("./toolbar-BR8In7O0.cjs"),b=require("./translations-gVgMyNno.cjs");function d(r){const{active:t,display:a,onClick:i,disabled:l,label:s,icon:u,size:e}=r;return o.When(a,()=>n.ToolbarButton({onClick:i,disabled:l,size:e},o.attr.class(t.map(c=>c?"bc-toolbar__button--active":"")),o.aria.pressed(t),o.attr.title(s),b.Icon({icon:u,size:e})))}function p({display:r},...t){return o.When(o.computedOf(...r)((...a)=>a.some(Boolean)),()=>n.ToolbarGroup(...t))}exports.EditorToolbarButton=d;exports.EditorToolbarGroup=p;
