@kinvolk/headlamp-plugin
Version:
The needed infrastructure for building Headlamp plugins.
20 lines (19 loc) • 827 B
TypeScript
import Pod from '../../../lib/k8s/pod';
import CreatePodForm from '../../pod/CreatePodForm';
export declare const RESOURCE_DEFINITIONS: {
Pod: {
class: typeof Pod;
form: typeof CreatePodForm;
};
};
export type ResourceType = keyof typeof RESOURCE_DEFINITIONS;
/** Parse a YAML string into a plain object. Returns `null` for non-empty
* invalid input so the form state is not overwritten mid-edit. Blank input
* yields `{}`. Used by {@link CreateActivityContent} to sync the form when
* the user edits YAML directly in the editor panel. */
export declare function parseEditorObject(input: string): Record<string, any> | null;
interface CreateButtonProps {
isNarrow?: boolean;
}
export default function CreateButton(props: CreateButtonProps): import("react/jsx-runtime").JSX.Element;
export {};