import Component from 'ember-component';
import { assert } from 'ember-metal/utils';

export default Component.extend({
  classNames: ['js-host-mode-notification', 'sticky-message'],
  hostModeTargetName: '',

  init() {
    this._super(...arguments);
    assert(`{{host-mode-notification}} requires argument non-empty "hostModeTargetName"`, this.get('hostModeTargetName'));
  },

  actions: {
    close() {
      this.get('close')();
    }
  }
});
