text: import Component from '@glimmer/component';
  import { inject as service } from '@ember/service';
  import { tracked } from '@glimmer/tracking';
  
  export default class FlashMessageContainerComponent extends Component {
    @service('flashMessages') flashMessages;
  
    @tracked flashMessagesQueue = [];
  
    constructor(...args) {
      super(...args);
      this.flashMessages.subscribe(this.updateQueue.bind(this));
    }
  
    updateQueue(queue) {
      this.flashMessagesQueue = queue;
    }
  }
  