import{bp as m,f as i,e as n,L as h,ao as s,aq as d}from"./app-k0jcl5PQ.js";import{A as x}from"./BDviDDog.chunk.js";import{P as b}from"./DwDhXSrj.chunk.js";import{R as v}from"./B7cmFgV1.chunk.js";const C="_searchContainer_1dp5m_1",S={searchContainer:C},r="classrooms.classroomsHeader",c=h.encloseNamespace(r);function u(a){const o=m(),t=o.xs||o.sm,e=[];a.hasShareFlowV2&&(e.push({name:c("overviewTab"),appLink:{application:n.CLASSROOMS,action:i.Classrooms.HOME},active:a.activeTab==="overview"}),e.push({name:c("classroomsTab"),appLink:{application:n.CLASSROOMS,action:i.Classrooms.VIEW_ALL},active:a.activeTab==="classrooms"}),e.push({name:c("openClassroomsTab"),appLink:{application:n.CLASSROOMS,action:i.Classrooms.OPEN_CLASSROOMS},active:a.activeTab==="open-classrooms"}));const l=a.hideTabs||e.length===1;return s.jsxs("div",{children:[!!a.hasRostering&&s.jsx("div",{className:"my-3",children:s.jsx(v,{type:"general"})}),s.jsxs("div",{className:"d-flex align-items-center mb-3",children:[s.jsx("h1",{className:"flex-fill h2 me-3 my-1",children:s.jsx(d,{namespace:r,phrase:"heading"})}),s.jsxs("div",{className:"d-flex",children:[a.searchBar&&!t&&s.jsx("div",{className:`${S.searchContainer} d-flex mb-2 mb-sm-0 me-2`,children:a.searchBar}),s.jsx(x,{actions:a.actions??[],actionsDropdownClassName:"btn btn-outline-dark"})]})]}),!l&&s.jsx("div",{className:"mb-3",children:s.jsx(b,{tabs:e})}),t&&a.searchBar?s.jsx("div",{className:"mb-3",children:a.searchBar}):null]})}export{u as C};
//# sourceMappingURL=Cp4QKQhL.chunk.js.map
