1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Introduce appUpdateWarningLevelInjectable

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-05-27 14:01:13 +03:00
parent c2c9c93b54
commit 9acc2c9f9c

View File

@ -0,0 +1,19 @@
/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getInjectable } from "@ogre-tools/injectable";
import { computed } from "mobx";
import appUpdateWarningInjectable from "./app-update-warning.injectable";
const appUpdateWarningLevelInjectable = getInjectable({
id: "app-update-warning-level",
instantiate: (di) => {
const store = di.inject(appUpdateWarningInjectable);
return computed(() => store.warningLevel);
},
});
export default appUpdateWarningLevelInjectable;