import{j as e}from"./app-C7YxHmQz.js";import{B as o}from"./button-CJ9RiI_R.js";import{T as x,a as h,b as r,c as i,d as j,e as a}from"./table-BLh168x8.js";import{u as p}from"./useVideoStore-VqZppESu.js";import{P as u}from"./pencil-DqDwtGog.js";import{T}from"./trash-2-Bi_KTzX2.js";import"./index-Cp62Blk_.js";import"./utils-DjqsqOe8.js";import"./react-3TENqYnz.js";import"./createLucideIcon-CBwNTxoJ.js";function O({data:t}){const{setVideo:l,setOpenModalCreateOrEditVideo:n,setOpenModalDeleteVideo:c}=p(),d=s=>{l(s),n(!0)},m=s=>{l(s),c(!0)};return e.jsxs(x,{children:[e.jsx(h,{children:e.jsxs(r,{children:[e.jsx(i,{children:"Key"}),e.jsx(i,{className:"w-32",children:"Acciones"})]})}),e.jsx(j,{children:t.length>0?t.map(s=>e.jsxs(r,{children:[e.jsx(a,{children:s.key}),e.jsxs(a,{className:"flex gap-4",children:[e.jsx(o,{onClick:()=>d(s),children:e.jsx(u,{})}),e.jsx(o,{variant:"destructive",onClick:()=>m(s),children:e.jsx(T,{})})]})]},s.id)):e.jsx(r,{children:e.jsx(a,{colSpan:2,className:"text-center",children:"No se encontraron videos."})})})]})}export{O as default};
