import { Component, Input, Output, EventEmitter } from '@angular/core';
import { FormControl } from '@angular/forms';
import { SpfValuePair } from '@softpak/frontend-components/dist/types';

@Component({
  selector: 'spa-channel-selection',
  template: `<spn-input [formControl]="control" [spfLabel]="txtChannel"
      [spfType]="'radio'" [spfSuggestions]="options"></spn-input>
  `,
})
export class SpaChannelSelectionComponent {
  @Input() control!: FormControl;
  @Input() options?: SpfValuePair<string>[] = [];
  @Input() txtChannel!: string;

  constructor(
  ) { }
}
