import HolderItem from "../HolderItem/index.js";
import React from "react";
import { PisellCustomCheckboxGroup } from "@pisell/materials";
//#region src/plus/selectHolder/components/HolderList/index.tsx
/**
* @title: HolderList 选项列表组件
* @description: 抽离的选项列表组件，可以在 Modal 外部独立使用
* @Author: WangHan
* @Date: 2025-01-XX
*/
const HolderList = ({ dataSource = [], selectedValues = [], displayConfig, renderAddItem, columns = 3, horizontalGap = 16, verticalGap = 16, allowAdd = true, onClick }) => {
	return /* @__PURE__ */ React.createElement(PisellCustomCheckboxGroup, {
		dataSource,
		renderItem: (item) => /* @__PURE__ */ React.createElement(HolderItem, {
			item,
			displayConfig,
			value: selectedValues
		}),
		renderAddItem,
		columns,
		horizontalGap,
		verticalGap,
		allowAdd,
		onClick
	});
};
//#endregion
export { HolderList as default };
