import { jsx as _jsx } from "react/jsx-runtime";
import React from "react";
export const createSimpleContext = (name, initialValues, useHook) => {
    const Context = React.createContext(initialValues);
    const Provider = ({ children, ...props }) => {
        const value = useHook(props);
        return _jsx(Context.Provider, { value: value, children: children });
    };
    Provider.displayName = "SimpleContextProvider:" + name;
    return {
        useContext: () => React.useContext(Context),
        Provider,
        Consumer: Context.Consumer,
    };
};
//# sourceMappingURL=simple.js.map