"use client";
import { createSplitProps } from "../../utils/create-split-props.js";
import { ark } from "../factory.js";
import { useFileUploadContext } from "./use-file-upload-context.js";
import { FileUploadItemGroupPropsProvider } from "./use-file-upload-item-group-props-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/file-upload/file-upload-item-group.tsx
var splitItemGroupProps = createSplitProps();
var FileUploadItemGroup = forwardRef((props, ref) => {
	const [itemGroupProps, localProps] = splitItemGroupProps(props, ["type"]);
	const mergedProps = mergeProps(useFileUploadContext().getItemGroupProps(itemGroupProps), localProps);
	return /* @__PURE__ */ jsx(FileUploadItemGroupPropsProvider, {
		value: itemGroupProps,
		children: /* @__PURE__ */ jsx(ark.ul, {
			...mergedProps,
			ref
		})
	});
});
FileUploadItemGroup.displayName = "FileUploadItemGroup";
//#endregion
export { FileUploadItemGroup };
