import { Component, Input } from '@angular/core';
import { RiskItemModel } from '../../../../../classes/risk-item.model';
import { CommonNzModule } from '../../../../../common.nz.module';
import { FilterButtonGroupComponent } from '../../../../../shared/filter-button-group/filter-button-group.component';

@Component({
  selector: 'control-info',
  standalone: true,
  imports: [CommonNzModule, FilterButtonGroupComponent],
  templateUrl: './control-info.component.html',
  styleUrl: './control-info.component.less',
})
export class ControlInfoComponent extends RiskItemModel {
  @Input() data!: Knowledge.RiskItem;

  tabs: Option<string>[] = [
    { label: '主要作业要求', value: 'main' },
    { label: '规章制度', value: 'regulation' },
    { label: '其他措施', value: 'other' },
  ];
  tab = 'main';
  changeTab(value: string) {
    this.tab = value;
  }
}
