1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/renderer/cluster-modals/cluster-modals-cluster-frame-child-component.injectable.ts
Alex Andreev a6047899d6 Add ClusterModal components and injection token
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-10-10 12:54:32 +03:00

18 lines
656 B
TypeScript

import { getInjectable } from "@ogre-tools/injectable";
import { computed } from "mobx";
import { clusterFrameChildComponentInjectionToken } from "../frames/cluster-frame/cluster-frame-child-component-injection-token";
import { ClusterModals } from "./cluster-modals";
const clusterModalsClusterFrameChildComponentInjectable = getInjectable({
id: "cluster-modals-cluster-frame-child-component",
instantiate: () => ({
id: "cluster-modals",
shouldRender: computed(() => true),
Component: ClusterModals,
}),
injectionToken: clusterFrameChildComponentInjectionToken,
});
export default clusterModalsClusterFrameChildComponentInjectable;