import { Component } from '@angular/core';

import { NzQRCodeModule } from 'ng-zorro-antd/qr-code';

@Component({
  selector: '<%= selector %>',
  imports: [NzQRCodeModule],
  <% if(inlineTemplate) { %>template: `
    <nz-qrcode nzValue="https://ng.ant.design/" nzStatus="loading"></nz-qrcode>
    <nz-qrcode nzValue="https://ng.ant.design/" nzStatus="expired" (nzRefresh)="refresh($event)"></nz-qrcode>
    <nz-qrcode nzValue="https://ng.ant.design/" nzStatus="scanned"></nz-qrcode>
  `<% } else { %>templateUrl: './<%= dasherize(name) %>.component.html'<% } %>,
  <% if(inlineStyle) { %>styles: [`
      nz-qrcode {
        margin-right: 12px;
      }
    `]<% } else { %>styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']<% } %>
})
export class <%= classify(name) %>Component {
  refresh(val: string): void {
    console.log(val);
  }
}
