import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
import * as __WEBPACK_EXTERNAL_MODULE__application_Plugin_mjs__ from "../../application/Plugin.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__ScrollAssistant_provider_mjs__ from "./ScrollAssistant.provider.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__ScrollAssistantStatus_provider_mjs__ from "./ScrollAssistantStatus.provider.mjs";
const scrollAssistant = {
    name: 'scrollAssistant',
    useLoadMethod: ()=>{
        const { setEnable } = (0, __WEBPACK_EXTERNAL_MODULE__ScrollAssistantStatus_provider_mjs__.useScrollAssistantStatus)();
        const { t } = (0, __WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
        return {
            title: t('Scroll assistant'),
            actionProps: {
                onClick: ()=>{
                    setEnable((enable)=>!enable);
                }
            }
        };
    }
};
class ScrollAssistantPlugin extends __WEBPACK_EXTERNAL_MODULE__application_Plugin_mjs__.Plugin {
    async load() {
        this.app.use(__WEBPACK_EXTERNAL_MODULE__ScrollAssistant_provider_mjs__.ScrollAssistantProvider);
        this.app.pluginContextMenu.add(scrollAssistant.name, scrollAssistant);
    }
}
export { ScrollAssistantPlugin, scrollAssistant };
