UNPKG

@atlaskit/editor-plugin-block-controls

Version:

Block controls plugin for @atlaskit/editor-core

16 lines (15 loc) • 485 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.shouldUseNestedDragHandleIcon = void 0; // Nested layout columns use the full block handle; other non-top-level nodes use the nested icon. var shouldUseNestedDragHandleIcon = exports.shouldUseNestedDragHandleIcon = function shouldUseNestedDragHandleIcon(isTopLevelNode, isLayoutColumn) { if (isTopLevelNode) { return false; } if (isLayoutColumn) { return false; } return true; };