import e from"../../node_modules/lodash/get.js";import o from"../../node_modules/lodash/isNil.js";import t from"react";import r from"./Table.js";import l from"./TableBody.js";import m from"./TableCell.js";import a from"./TableHeader.js";import s from"./TableHeaderCell.js";import i from"./TableRow.js";function n({config:n,items:c}){const{columns:d,showHeader:p=!0}=n;return t.createElement(r,null,p&&t.createElement(a,null,d.map((e=>t.createElement(s,{key:`Header-${e.id}`,title:e.title,width:e.width})))),t.createElement(l,null,c.map(((r,l)=>t.createElement(i,{key:`Row-${l}`},d.map((a=>{const s=o(a.accessor)?r:e(r,a.accessor);return t.createElement(m,{key:`Row-${l}-${a.id}`},a.Cell?.(s)??s)})))))))}export{n as default};
//# sourceMappingURL=SimpleTable.js.map
