"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.mediaInlineImagesEnabled = void 0;
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
/**
 * Enable media inline images feature based on
 * mediaOptions.featureFlags.mediaInline, mediaOptions.allowMediaInlineImages and platform FF platform.editor.media.inline-image.base-support
 *
 * The reason not using mediaOption as param is because MediaOption is from editor-plugin-media
 * we want to avoid circular deps
 * @param allowMediaInline MediaOptions.featureFlags.mediaInline
 * @param allowMediaInlineImages MediaOptions.allowMediaInlineImages
 * @returns boolean
 */
var mediaInlineImagesEnabled = exports.mediaInlineImagesEnabled = function mediaInlineImagesEnabled(allowMediaInline, allowMediaInlineImages) {
  return allowMediaInline && allowMediaInlineImages && (0, _platformFeatureFlags.getBooleanFF)('platform.editor.media.inline-image.base-support');
};