mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
24 lines
713 B
TypeScript
24 lines
713 B
TypeScript
/**
|
|
* 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 catalogCatalogEntityInjectable from "./catalog-entities/general-catalog-entities/implementations/catalog-catalog-entity.injectable";
|
|
import { HotbarStore } from "./hotbar-store";
|
|
|
|
const hotbarStoreInjectable = getInjectable({
|
|
id: "hotbar-store",
|
|
|
|
instantiate: (di) => {
|
|
HotbarStore.resetInstance();
|
|
|
|
return HotbarStore.createInstance({
|
|
catalogCatalogEntity: di.inject(catalogCatalogEntityInjectable),
|
|
});
|
|
},
|
|
|
|
causesSideEffects: true,
|
|
});
|
|
|
|
export default hotbarStoreInjectable;
|