UNPKG

@wordpress/widget-dashboard

Version:

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

13 lines (12 loc) • 384 B
// packages/widget-dashboard/src/components/widget-actions/get-action-route.ts function getActionRoute(links, action) { const isDownload = action.download !== void 0 && action.download !== false; if (!links || isDownload || action.openInNewTab) { return null; } return links.match(action.href); } export { getActionRoute }; //# sourceMappingURL=get-action-route.mjs.map