import computed from 'ember-computed';
import SupportButton from 'web-client/components/backpack/support-button/component';

export default SupportButton.extend({
  name: 'benefitInfo',

  accessEndDate: computed('ticket.access_end', function () {
    let accessEnd = this.get('ticket.access_end');

    if (accessEnd) {
      return (new Date(accessEnd)).toString('MMM d, yyyy');
    }
  })
});
