import Component from 'ember-component';
import RSVP from 'rsvp';

export default Component.extend({
  onConfirm() { return RSVP.resolve(); },
  onDismiss() {},

  actions: {
    confirm(video) {
      let onDismiss = this.get('onDismiss');
      this.get('onConfirm')(video).then(onDismiss);
    }
  }
});
