import { jsx } from "react/jsx-runtime";
import { createContext } from "react";
import { useActionContext } from "./hooks.mjs";
const ActionContext = /*#__PURE__*/ createContext({});
ActionContext.displayName = 'ActionContext';
const ActionContextProvider = (props)=>{
    const contextProps = useActionContext();
    return /*#__PURE__*/ jsx(ActionContext.Provider, {
        value: {
            ...contextProps,
            ...props,
            ...null == props ? void 0 : props.value
        },
        children: props.children
    });
};
export { ActionContext, ActionContextProvider };
