UNPKG

@kinvolk/headlamp-plugin

Version:

The needed infrastructure for building Headlamp plugins.

11 lines (10 loc) 500 B
import { PluginInfo } from '../../../plugin/pluginsSlice'; /** * Returns a function that deletes a plugin via the backend API, dispatches * a clusterAction (which surfaces the start/success/error snackbars), and * navigates back to the plugin list before reloading. * * The returned promise resolves on success and rejects when the deletion * fails, so callers can roll back optimistic UI updates if needed. */ export declare function usePluginDelete(): (plugin: PluginInfo) => Promise<void>;