mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
23 lines
739 B
TypeScript
23 lines
739 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
import type { KubeConfig } from "@kubernetes/client-node";
|
|
import { getInjectable } from "@ogre-tools/injectable";
|
|
import { observable } from "mobx";
|
|
import type { Cluster } from "../../../common/cluster/cluster";
|
|
|
|
export interface DeleteClusterDialogState {
|
|
config: KubeConfig;
|
|
cluster: Cluster;
|
|
showContextSwitch: boolean;
|
|
newCurrentContext: string;
|
|
}
|
|
|
|
const deleteClusterDialogStateInjectable = getInjectable({
|
|
id: "delete-cluster-dialog-state",
|
|
instantiate: () => observable.box<DeleteClusterDialogState | undefined>(),
|
|
});
|
|
|
|
export default deleteClusterDialogStateInjectable;
|