import{dc as r,j as e,d as t,R as l}from"./index-lOezWVmi.js";function u(){const{showModal:n,hideModal:a}=r();return i=>{const c=e.jsx(t.Modal,{close:a,title:"Bulk operation details",children:e.jsx(t.MainTable,{style:{width:"auto"},headers:[{content:"Item"},{content:"Details"}],rows:i.map(s=>{const o=s.status==="fulfilled";return{columns:[{content:e.jsx(l,{value:s.item.name,type:s.item.type,to:s.item.href})},{content:e.jsxs(e.Fragment,{children:[e.jsx(t.Icon,{name:o?"success":"error"})," ",o?"Success":"Error: "+s.reason]})}]}})})});return[{label:"View details",onClick:()=>{n(c)}}]}}export{u};
