import Component from '@glimmer/component';
import { action } from '@ember/object';
import { inject as service } from '@ember/service';

const modes = [
  {
    id: 'view',
    displayTitle: 'Layout View'
  },
  {
    id: 'edit',
    displayTitle: 'Edit View'
  },
  {
    id: 'schema',
    displayTitle: 'Schema View'
  }
];

export default class ModeSwitcher extends Component {
  modes = modes;

  @service router;

  constructor(...args) {
    super(...args);
  }

  @action
  selectMode(mode) {
    if (!mode || !this.args.name) { return; }

    this.router.transitionTo(`cards.${mode}`, this.args.name);
  }
}

@@ -416,58 +416,8 @@
 r;%0A%0A
-  constructor(...args) %7B%0A    super(...args);%0A  %7D%0A%0A
   @a

Remove constructor