import Index from './index';
import computed from 'ember-computed';

export default Index.extend({
  name: 'twitch',
  _url: computed('name', function () {
    return `/${this.get('name')}`;
  }),

  commerceBox() {
    return this.isFound('.qa-cmrc-channel-box');
  },

  commerceBoxShown() {
    return this.isFound('.qa-cmrc-channel-box');
  },

  commerceBoxHidden() {
    return this.isNotFound('.qa-cmrc-channel-box');
  },

  buyBox() {
    return this.isFound('.button--purchase');
  }

});
