{"size": 572, "ext": "js", "max_stars_repo_path": "addon/modules/ui-component/ui-tips/component.js", "max_stars_repo_name": "choice-form/ember-qui", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "addon/modules/ui-component/ui-tips/component.js", "max_issues_repo_name": "choice-form/ember-qui", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "addon/modules/ui-component/ui-tips/component.js", "max_forks_repo_name": "choice-form/ember-qui", "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": 21.1851851852, "max_line_length": 41, "alphanum_fraction": 0.6206293706}
import Component from '@ember/component';
import layout from './template';
import { set } from '@ember/object';
import { get } from '@ember/object';


export default Component.extend({
  layout,
  tagName:'',
  didInsertElement(){
    this._super(...arguments);
    const storage = get(this, 'storage');
    if(localStorage.getItem(storage)){
      set(this, 'showTipImage', false);
    }else {
      set(this, 'showTipImage', true);
      localStorage.setItem(storage,true);
    }
  },

  actions: {
    closeTip(){
      set(this, 'showTipImage', false);
    },
  }
});
