@wordpress/block-editor
Version:
15 lines (14 loc) • 537 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useIsListViewTabDisabled = exports.default = void 0;
// List view tab restricts the blocks that may render to it via the
// allowlist below.
const allowlist = ['core/navigation'];
const useIsListViewTabDisabled = blockName => {
return !allowlist.includes(blockName);
};
exports.useIsListViewTabDisabled = useIsListViewTabDisabled;
var _default = exports.default = useIsListViewTabDisabled;
//# sourceMappingURL=use-is-list-view-tab-disabled.js.map
;