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

import { NzSpinModule } from 'ng-zorro-antd/spin';
import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';

@Component({
  selector: '<%= selector %>',
  imports: [NzSpinModule, NzTreeSelectModule],
  <% if(inlineTemplate) { %>template: `
    <nz-tree-select
      style="width: 250px"
      [nzNodes]="[]"
      nzPlaceHolder="Please select"
      [nzNotFoundContent]="noData"
    ></nz-tree-select>
    <ng-template #noData>
      <div style="height: 200px; display: flex; justify-content: center; align-items: center">
        <nz-spin nzSimple></nz-spin>
      </div>
    </ng-template>
  `<% } else { %>templateUrl: './<%= dasherize(name) %>.component.html'<% } %>
})
export class <%= classify(name) %>Component {}
