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

@Component({
    selector: 'wowhead',
    template: `
    <a target="_blank" [href]="item.url">
        <item [item]="item"></item>
    </a>
    
    `,
  })
  export class FrontcraftWowheadComponent implements OnInit{
    @Input() item: Item
  
    constructor(
      private toastr: NbToastrService,
      private api : ApiService
    ){}
  
    async ngOnInit() {
    }
  }