import { Component, OnInit, ContentChild, AfterContentInit, ViewChild, AfterViewInit, Input, Output, EventEmitter } from '@angular/core';
import { ApiService as ApiService } from '../../services/login-api';
import { FrontcraftItemSelectComponent } from './itemselector.component';
import { NbWindowService, NbWindowRef, NbToastrService, NbDialogService, NbDialogRef } from '@nebular/theme';
import { Item, Character, SRToken, Signup } from '../../../../../../backend/Types/Types';
import { getClassColor } from '../../../../../../backend/Types/PlayerSpecs';
import { _Tiers, allItems } from '../../../../../../backend/Types/Items';

@Component({
  selector: 'shop',
  templateUrl: './shop.component.html',
})
export class FrontcraftShopComponent implements OnInit{

    @Input() character: Character
    @Input() signup: Signup

    @Input() tier = _Tiers[0]
    @Output() onSelect = new EventEmitter<Item>()
    allItems = allItems

    constructor(
      private api: ApiService,
      private dialogService : NbDialogService
    ){

    }

    ngOnInit(){
    }
}
