UNPKG

@wordpress/widget-dashboard

Version:

Stateless rendering engine for widget dashboards: the WidgetDashboard compound component and its grid-settings kit.

13 lines • 545 B
import type { WidgetAction, WidgetType } from '@wordpress/widget-primitives'; /** * Splits a widget type'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 The widget type whose actions are routed. */ export declare function splitWidgetActions(widgetType?: WidgetType): { footer: WidgetAction[]; menu: WidgetAction[]; }; //# sourceMappingURL=split-widget-actions.d.ts.map