@wordpress/widget-dashboard
Version:
Stateless rendering engine for widget dashboards: the WidgetDashboard compound component and its grid-settings kit.
14 lines • 679 B
TypeScript
import type { WidgetRuntimeAction, WidgetType } from '@wordpress/widget-primitives';
/**
* Splits a widget's actions across the chrome surfaces: the footer takes
* `relevance: 'high'` and `'medium'`, the More menu the rest. Full-bleed
* widgets have no footer, so every action stays in the menu.
*
* @param {WidgetType | undefined} widgetType The widget type.
* @param {WidgetRuntimeAction[]} runtimeActions The instance's actions.
*/
export declare function splitWidgetActions(widgetType?: WidgetType, runtimeActions?: WidgetRuntimeAction[]): {
footer: WidgetRuntimeAction[];
menu: WidgetRuntimeAction[];
};
//# sourceMappingURL=split-widget-actions.d.ts.map