import{ao as e,gc as g,aq as u,p as i,E as s,r as c,v as r,L as n}from"./app-k0jcl5PQ.js";import{P as x}from"./DwDhXSrj.chunk.js";const L="_pillTab_1wdcp_2",T={pillTab:L},t="discover.header";function v(a){var l,o,h,p,y,d;if(!a.type)return e.jsx(e.Fragment,{});if(a.type===g.Learner||a.hasStudentExperience)return e.jsx("div",{className:"py-3",children:e.jsx("h1",{className:"h2 mb-0",children:e.jsx(u,{namespace:t,phrase:"heading"})})});const m=[{name:n.getPhrase(t,"forYou"),appLink:(l=a.appLinks)==null?void 0:l.forYou,active:a.active==="forYou",analyticsData:{name:n.getPhrase(t,"forYou"),url:r.getHref((o=a.appLinks)==null?void 0:o.forYou)},analyticsOptions:{actionType:c.Click,entity:s.Url,location:i.MagicTabs}},{name:n.getPhrase(t,"whatsNew"),appLink:(h=a.appLinks)==null?void 0:h.whatsNew,active:a.active==="whatsNew",analyticsData:{name:n.getPhrase(t,"whatsNew"),url:r.getHref((p=a.appLinks)==null?void 0:p.whatsNew)},analyticsOptions:{actionType:c.Click,entity:s.Url,location:i.MagicTabs}},{name:n.getPhrase(t,"calendar"),appLink:(y=a.appLinks)==null?void 0:y.calendar,active:a.active==="calendar",analyticsData:{name:n.getPhrase(t,"calendar"),url:r.getHref((d=a.appLinks)==null?void 0:d.calendar)},analyticsOptions:{actionType:c.Click,entity:s.Url,location:i.MagicTabs},hide:!a.showCalendar}];return e.jsx("div",{className:"py-3 text-center mx-n3",children:e.jsx(x,{tabs:m,className:T.pillTab})})}export{v as D};
//# sourceMappingURL=ht1P6SFD.chunk.js.map
