import{j as e,x as d}from"./app-C7YxHmQz.js";import{B as o}from"./button-CJ9RiI_R.js";import{T as m,a as x,b as r,c as l,d as h,e as a}from"./table-BLh168x8.js";import{u as j}from"./useCursoMaterialStore-BEjxFk8P.js";import{P as p}from"./pencil-DqDwtGog.js";import{T as u}from"./trash-2-Bi_KTzX2.js";import"./index-Cp62Blk_.js";import"./utils-DjqsqOe8.js";import"./react-3TENqYnz.js";import"./createLucideIcon-CBwNTxoJ.js";function w({data:t}){const{setCursoMaterial:i,setOpenModalDeleteCursoMaterial:n}=j(),c=s=>{i(s),n(!0)};return e.jsxs(m,{children:[e.jsx(x,{children:e.jsxs(r,{children:[e.jsx(l,{children:"Nombre"}),e.jsx(l,{className:"w-32",children:"Acciones"})]})}),e.jsx(h,{children:t.length>0?t.map(s=>e.jsxs(r,{children:[e.jsx(a,{children:s.nombre}),e.jsxs(a,{className:"flex gap-4",children:[e.jsx(d,{href:route("cursos-materiales.edit",s.id),children:e.jsx(o,{type:"button",children:e.jsx(p,{})})}),e.jsx(o,{variant:"destructive",onClick:()=>c(s),children:e.jsx(u,{})})]})]},crypto.randomUUID())):e.jsx(r,{children:e.jsx(a,{colSpan:2,className:"text-center",children:"No se encontraron sessiones de Estudio."})})})]})}export{w as default};
