import { ModeRegistration , Tab } from '@kui-shell/core' ; import { KubeResource } from '@kui-shell/plugin-kubectl' ; function verifyResponse ( resource ) { return resource . kind === 'Command' && resource . metadata . name === 'Experiment Creation' ; } const exprcreateMode = { when : verifyResponse , mode : { mode : 'Experiment Setup' , content : ( tab ) => import ( '../modes/render' ) . then ( _ => _ . renderForm ( tab ) ) } } ; const decisionMode = { when : verifyResponse , mode : { mode : 'Decision' , content : ( tab ) => import ( '../modes/render' ) . then ( _ => _ . renderDecisionTab ( tab ) ) } } ; export { exprcreateMode , decisionMode } ;