UNPKG

@openshift-console/dynamic-plugin-sdk

Version:

Provides core APIs, types and utilities used by dynamic plugins at runtime.

13 lines (12 loc) 723 B
import { ModalComponent } from '../app/modal-support/ModalProvider'; import { Extension, ExtensionDeclaration, CodeRef } from '../types'; import { K8sResourceCommon } from './console-types'; export type CreateProjectModalProps = { onSubmit?: (project: K8sResourceCommon) => void; }; /** This extension can be used to pass a component that will be rendered in place of the standard create project modal. */ export type CreateProjectModal = ExtensionDeclaration<'console.create-project-modal', { /** A component to render in place of the create project modal */ component: CodeRef<ModalComponent<CreateProjectModalProps>>; }>; export declare const isCreateProjectModal: (e: Extension) => e is CreateProjectModal;