import { t as e } from "../chunks/table-xMAjqtcY.js";
import { useMemo as t } from "react";
import { jsx as n } from "react/jsx-runtime";
//#region src/simple-table/SimpleTable.tsx
var r = [];
function i({ title: i, isLoading: a, isFetching: o, columns: s, data: c, className: l, tableClassName: u, onReachEnd: d }) {
	let f = t(() => s.map((e) => {
		let t = e;
		return t.meta?.width || typeof e.size != "number" ? t : {
			...t,
			meta: {
				...t.meta,
				width: e.size
			}
		};
	}), [s]);
	return /* @__PURE__ */ n(e, {
		title: i,
		isLoading: a,
		isFetching: o,
		data: c ?? r,
		columns: f,
		className: l,
		tableClassName: u,
		onReachEnd: d
	});
}
//#endregion
export { i as SimpleTable };

//# sourceMappingURL=index.js.map