text: /*
   * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
   * or more contributor license agreements. Licensed under the Elastic License;
   * you may not use this file except in compliance with the Elastic License.
   */
  
  import { get } from 'lodash';
  
  // page getters
  export function canUserWrite(state) {
    return get(state, 'transient.canUserWrite', true);
  }
  
  export function getFullscreen(state) {
    return get(state, 'transient.fullscreen', false);
  }
  
  export function getServerFunctions(state) {
    return get(state, 'app.serverFunctions');
  }
  
  export function getAppReady(state) {
    return get(state, 'app.ready');
  }
  
  export function getBasePath(state) {
    return get(state, 'app.basePath');
  }
  
  export function getReportingBrowserType(state) {
    return get(state, 'app.reportingBrowserType');
  }
  
  // return true only when the required parameters are in the state
  export function isAppReady(state) {
    const appReady = getAppReady(state);
    return appReady === true;
  }
  