import{u as o}from"./publishStore-a6d0eb83.js";import{B as r,c as u,b as e,n as l,u as s,t as c,o as f}from"./app-13978987.js";const b={class:"mb-1 hidden capitalize lg:inline"},h={__name:"TabButton",props:{title:{type:String,required:!0},text:{type:String,default:null},icon:String,isMobile:{type:Boolean,default:!1}},setup(t){const i=o(),{getTabState:n}=r(i);return(d,a)=>(f(),u("button",{onClick:a[0]||(a[0]=m=>s(i).setTab(t.title)),type:"button",class:l(["publish-tab flex w-full items-center justify-center rounded-xl p-2.5 shadow-md transition-colors lg:justify-start",{active:s(n)(t.title)}])},[e("div",{class:l(["publish-tab-icon flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full lg:mr-4 lg:h-10 lg:w-10",{"active-icon":s(n)(t.title)}])},[e("i",{class:l(["bx text-base lg:text-xl",t.icon])},null,2)],2),e("span",b,c(t.text?t.text:t.title),1)],2))}};export{h as default};
