import{j as e}from"./react-vendor-xYZnmIII.js";import{C as l}from"./course-card-2-B4SIepk5.js";import{T as i}from"./tabs-eeNoRD9t.js";import{y as t,z as c,D as m}from"./ui-components-CQM92IK3.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./interactive-vendor-B1OgcAgP.js";const h=({data:r})=>r?e.jsxs(i,{defaultValue:r.collection[0].slug,children:[e.jsx("div",{className:"mt-6 flex w-full overflow-x-auto overflow-y-hidden",children:e.jsx(t,{className:"h-[60px] justify-center px-2",children:r.collection.map(s=>e.jsx(c,{value:s.slug,className:"h-11 cursor-pointer text-base",children:s.title},s.id))})}),r.collection.map(s=>e.jsx(m,{value:s.slug,className:"mt-10",children:s.courses&&s.courses.length>0?e.jsx("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:s.courses.map(o=>e.jsx(l,{course:o},o.id))}):e.jsx("p",{className:"text-muted-foreground text-center",children:"No courses found"})},s.id))]}):e.jsx("p",{className:"text-muted-foreground text-center",children:"No courses found"});export{h as default};
