import Helper from 'ember-helper';
import injectService from 'ember-service/inject';

export default Helper.extend({
  globals: injectService(),

  compute([globalProp]) {
    let globalVal = this.get(`globals.${globalProp}`);
    return globalVal === true || globalVal === 'true';
  }
});
