import getL10nObject from "./getL10nObject";

import { get } from "lodash";

/**
 * Returns whether or not the content analysis is active
 *
 * @returns {boolean} Whether or not the content analysis is active.
 */
export default function isContentAnalysisActive() {
	const l10nObject = getL10nObject();

	return get( l10nObject, "contentAnalysisActive", false ) === true;
}
