import{j as r}from"./react-vendor-xYZnmIII.js";import m from"./categories-knb53XCN.js";import p from"./courses-KErKBblw.js";import u from"./instructors-CVRfrsOi.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./table-header-CjMHr8CW.js";import"./ui-components-CQM92IK3.js";import"./interactive-vendor-B1OgcAgP.js";import"./categories-table-columns-BhRJO5hg.js";import"./table-filter-A5dRHZXr.js";import"./table-page-size-CzF8rJAG.js";import"./route-D0xh7FtZ.js";import"./debounce-CWHP_ANh.js";import"./table-footer-DaE_7-Nu.js";import"./courses-table-columns-CU84dgUh.js";import"./instructors-table-columns-DlCXLyh5.js";const E=({contents:o,section_slug:e,selectedIds:s=[],onSelectChange:t})=>{const i=()=>{switch(e){case"hero":case"top_course":case"top_courses":case"new_courses":return r.jsx(p,{courses:o,selectedIds:s,onCourseSelect:t});case"top_categories":case"category_courses":return r.jsx(m,{categories:o,selectedIds:s,onCourseSelect:t});case"top_instructors":return r.jsx(u,{instructors:o,selectedIds:s,onCourseSelect:t});case"blogs":return r.jsx("h1",{children:"Blogs"});default:return null}};return r.jsx("div",{className:"rounded-md border",children:i()})};export{E as default};
