import { jsx } from "react/jsx-runtime";
import "react";
import { CollectionManagerProvider } from "../data-source/collection/CollectionManagerProvider.mjs";
import { CollectionProvider } from "../data-source/collection/CollectionProvider.mjs";
const CollectionProvider_deprecated = (param)=>{
    let { children, allowNull, name, dataSource, collection } = param;
    if (dataSource) return /*#__PURE__*/ jsx(CollectionManagerProvider, {
        dataSource: dataSource,
        children: /*#__PURE__*/ jsx(CollectionProvider, {
            allowNull: allowNull,
            name: name || collection,
            children: children
        })
    });
    return /*#__PURE__*/ jsx(CollectionProvider, {
        allowNull: allowNull,
        name: name || collection,
        children: children
    });
};
export { CollectionProvider_deprecated };
