import{aT as m,j as s}from"./react-vendor-xYZnmIII.js";import{C as c}from"./course-card-1-BR5P0gvB.js";import{E as o}from"./exam-card-1-BZtXgV6j.js";import{a}from"./ui-components-CQM92IK3.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./interactive-vendor-B1OgcAgP.js";const u=()=>{const{courseWishlists:i,examWishlists:e,translate:d}=m().props,{frontend:t}=d;return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"mb-2 text-xl font-semibold",children:"Course Wishlist"}),i&&i.length>0?s.jsx("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-3",children:i.map(({id:r,course:l})=>s.jsx(c,{course:l,wishlists:i},r))}):s.jsx(a,{className:"flex items-center justify-center p-6",children:s.jsx("p",{children:t.no_wishlist_items})})]}),s.jsxs("div",{children:[s.jsx("h2",{className:"mb-2 text-xl font-semibold",children:"Exam Wishlist"}),e&&e.length>0?s.jsx("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-3",children:e.map(({id:r,exam:l})=>s.jsx(o,{exam:l,viewType:"grid"},r))}):s.jsx(a,{className:"flex items-center justify-center p-6",children:s.jsx("p",{children:t.no_wishlist_items})})]})]})};export{u as default};
