import { Component } from '@angular/core';
import { CommonNzModule } from '../../../../common.nz.module';
import { EnterpriseInputComponent } from './enterprise-input/enterprise-input.component';
import { RiskItemListComponent } from './risk-item-list/risk-item-list.component';
import { UpdateRecordComponent } from './update-record/update-record.component';

@Component({
  selector: 'risk-bank',
  standalone: true,
  imports: [CommonNzModule, RiskItemListComponent, UpdateRecordComponent, EnterpriseInputComponent],
  templateUrl: './risk-bank.component.html',
  styleUrl: './risk-bank.component.less',
})
export class RiskBankComponent {
  tabs = [
    {
      label: '风险知识',
      value: 'risk-knowledge',
    },
    // {
    //   label: '企业录入情况',
    //   value: 'enterprise-input',
    // },
    {
      label: '更新记录',
      value: 'update-record',
    },
  ];
  activeTab = this.tabs[0].value;

  changeTab(tab: string) {
    this.activeTab = tab;
  }
}
