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

export default Component.extend({
  init() {
    this._super(...arguments);
    assert(`${ this } requires argument "closeAmendmentModal"`, typeof this.get('closeAmendmentModal') === 'function');
  },

  actions: {
    accept() {
      this.get('closeAmendmentModal')(true);
    },
    cancel() {
      this.get('closeAmendmentModal')(false);
    }

  }
});
