UNPKG

@kinvolk/headlamp-plugin

Version:

The needed infrastructure for building Headlamp plugins.

15 lines (14 loc) 589 B
import { KubeObject } from '../../../lib/k8s/cluster'; import { ButtonStyle } from '../ActionButton'; export interface DownloadButtonProps { /** The Kubernetes resource object to download as YAML. */ item: KubeObject; /** Optional button rendering style. */ buttonStyle?: ButtonStyle; } /** * Renders a download action button for a Kubernetes resource. * When clicked, it serializes the item to YAML and downloads it. */ declare function DownloadButton({ item, buttonStyle }: DownloadButtonProps): import("react/jsx-runtime").JSX.Element; export default DownloadButton;