require("../../../_virtual/_rolldown/runtime.js");
const require_index = require("../Table/tableConfig/header/index.js");
const require_index$1 = require("../Table/tableConfig/body/index.js");
let react = require("react");
let _pisell_utils = require("@pisell/utils");
let antd = require("antd");
//#region src/components/table/hooks/useGenTableComponents.ts
const useGenTableComponents = (params) => {
	const { form } = params;
	const group = antd.Form.useWatch("group_by", {
		form,
		preserve: true
	});
	return (0, react.useMemo)(() => {
		return {
			header: {
				row: require_index.default.Row,
				cell: require_index.default.Cell
			},
			body: {
				row: require_index$1.default.Row,
				cell: require_index$1.default.Coll
			}
		};
	}, [(0, react.useMemo)(() => {
		return (0, _pisell_utils.isArr)(group) && group.length > 0;
	}, [group])]);
};
//#endregion
exports.default = useGenTableComponents;
