Introduce appUpdateWarningLevelInjectable

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2022-05-27 14:01:13 +03:00
1 parent c2c9c93b54
commit 9acc2c9f9c
1 file changed
+19
@@ -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;