{"size": 465, "ext": "js", "max_stars_repo_path": "addon/esm-header-close/component.js", "max_stars_repo_name": "shaunc/ember-smenu", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "addon/esm-header-close/component.js", "max_issues_repo_name": "shaunc/ember-smenu", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "addon/esm-header-close/component.js", "max_forks_repo_name": "shaunc/ember-smenu", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.8333333333, "max_line_length": 71, "alphanum_fraction": 0.7268817204}
// ember-smenu/esm-item/component

import Ember from 'ember';
import PortalDeclaration from 'ember-declarative/decl/ed-portal/mixin';
import layout from './template';

export default Ember.Component.extend(PortalDeclaration, {
  layout: layout,

  current: Ember.computed.alias('declarationContainer.current'),
  portalElementClass: 'esm-header-close',

  actions: {
    close(current) {
      this.get('declarationContainer').send('close', current);
    },
  }
});