mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
19 lines
655 B
TypeScript
19 lines
655 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
import type { KubeObject } from "../../../common/k8s-api/kube-object";
|
|
import type { KubeObjectDetailsProps } from "./kube-object-details";
|
|
import type React from "react";
|
|
|
|
export interface KubeObjectDetailComponents<T extends KubeObject = KubeObject> {
|
|
Details: React.ComponentType<KubeObjectDetailsProps<T>>;
|
|
}
|
|
|
|
export interface KubeObjectDetailRegistration<T extends KubeObject = KubeObject> {
|
|
kind: string;
|
|
apiVersions: string[];
|
|
components: KubeObjectDetailComponents<T>;
|
|
priority?: number;
|
|
}
|