import Component from 'ember-component';
import computed from 'ember-computed';

export default Component.extend({
  classNames: ['balloon-wrapper', 'profile-actions__button'],

  isBalloonOpen: computed('openedBalloon', 'name', function() {
    return this.get('openedBalloon') === this.get('name');
  }),

  actions: {
    toggleBalloon() {
      this.get('toggleBalloon')(this.get('name'));
    }
  }
});
