import computed from 'ember-computed';
import { GAME_NAME } from 'web-client/tests/pages/directory/game';
import Base from '../../base';

export default Base.extend({
  init() {
    this._super(...arguments);

    this.name = this.name || GAME_NAME;
  },

  _url: computed('name', function () {
    return `/directory/game/${this.get('name')}/clips`;
  }),

  clips() {
    return '[data-test-selector="clips-card-row"]';
  }
});
