import{j as e}from"./index-D552ngxQ.js";import{c as j}from"./index-Cp9WHPlb.js";function g({columns:r=[],dataSource:i=[],loading:c=!1}){return e.jsx(e.Fragment,{children:e.jsx("div",{className:"table",children:e.jsxs("table",{children:[e.jsx("thead",{children:e.jsx("tr",{children:r==null?void 0:r.map(t=>{const{key:n,title:l,align:a,width:s}=t;return e.jsx("th",{className:j("column",a&&`align-${a}`),style:{width:s},children:l},n)})})}),c===!1&&e.jsx("tbody",{children:i==null?void 0:i.map((t,n)=>e.jsx("tr",{children:r==null?void 0:r.map(l=>{const{key:a,dataIndex:s,render:d,align:x}=l,h=s?t[s]:void 0;return e.jsx("td",{className:j("column",x&&`align-${x}`),children:d?d(h,t):h},a)})},n))})]})})})}export{g as T};
