"use strict";

var _require = require("../util/obj");

var copyObj = _require.copyObj;


copyObj(require("./menu"), exports);
exports.menuBar = require("./menubar").menuBar;
exports.tooltipMenu = require("./tooltipmenu").tooltipMenu;

// !! This module defines a number of building blocks for ProseMirror
// menus, along with two menu styles, [`menubar`](#menuBar) and
// [`tooltipmenu`](#tooltipMenu).

// ;; #path=MenuElement #kind=interface
// The types defined in this module aren't the only thing you can
// display in your menu. Anything that conforms to this interface can
// be put into a menu structure.

// :: (pm: ProseMirror) → ?DOMNode #path=MenuElement.render
// Render the element for display in the menu. Returning `null` can be
// used to signal that this element shouldn't be displayed for the
// given editor state.