/** * Copyright (c) OpenLens Authors. All rights reserved. * Licensed under MIT License. See LICENSE in root directory for more information. */ import { getInjectionToken } from "@ogre-tools/injectable"; import type { IComputedValue } from "mobx"; import type { KubeObjectMenuProps } from "./kube-object-menu"; import type { KubeObject } from "../../../common/k8s-api/kube-object"; import type React from "react"; export type KubeObjectMenuItemComponent = React.ElementType< KubeObjectMenuProps >; export interface KubeObjectMenuItem { kind: string; apiVersions: string[]; enabled: IComputedValue; Component: KubeObjectMenuItemComponent; orderNumber: number; } export const kubeObjectMenuItemInjectionToken = getInjectionToken({ id: "kube-object-menu-item-injection-token", });