import { jsx } from "react/jsx-runtime";
import { createContext, useContext, useState } from "react";
const ScrollAssistantStatusContext = /*#__PURE__*/ createContext(null);
const ScrollAssistantStatusProvider = (param)=>{
    let { children } = param;
    const [enable, setEnable] = useState(false);
    return /*#__PURE__*/ jsx(ScrollAssistantStatusContext.Provider, {
        value: {
            enable,
            setEnable
        },
        children: children
    });
};
const useScrollAssistantStatus = ()=>{
    const { enable, setEnable } = useContext(ScrollAssistantStatusContext);
    return {
        enable,
        setEnable
    };
};
export { ScrollAssistantStatusProvider, useScrollAssistantStatus };
