"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.isMediaNode = void 0;
/**
 * Checks if the passed in node is a media node
 * Includes media, mediaInline, mediaGroup, mediaSingle
 * @param node The PM node to be checked
 */
var isMediaNode = exports.isMediaNode = function isMediaNode(node) {
  return ['media', 'mediaInline', 'mediaGroup', 'mediaSingle'].includes(node.type.name);
};