import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
import * as __WEBPACK_EXTERNAL_MODULE__common_appInfo_CurrentAppInfoProvider_mjs__ from "../../common/appInfo/CurrentAppInfoProvider.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__user_CurrentUserSettingsMenuProvider_mjs__ from "../../user/CurrentUserSettingsMenuProvider.mjs";
const SystemVersion = ()=>{
    const info = (0, __WEBPACK_EXTERNAL_MODULE__common_appInfo_CurrentAppInfoProvider_mjs__.useCurrentAppInfo)();
    const { t } = (0, __WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("span", {
        children: [
            t('App Version'),
            " - ",
            null == info ? void 0 : info.data.version
        ]
    });
};
const SystemVersionProvider = (param)=>{
    let { children } = param;
    const { addMenuItem } = (0, __WEBPACK_EXTERNAL_MODULE__user_CurrentUserSettingsMenuProvider_mjs__.useCurrentUserSettingsMenu)();
    (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
        addMenuItem({
            key: 'system-version',
            label: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SystemVersion, {})
        }, {
            before: 'divider_1'
        });
    }, [
        addMenuItem
    ]);
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.Fragment, {
        children: children
    });
};
export { SystemVersionProvider };
