import {Component, Input} from '@angular/core';
import {ChatbotSource} from '../../services/conversations.service';
import {CommonModule} from '@angular/common';

@Component({
  selector: 'app-source-block',
  imports: [CommonModule],
  templateUrl: './source-block.html',
  styleUrl: './source-block.scss'
})
export class SourceBlock {

  public expanded: boolean = false;
  @Input() source: ChatbotSource = {} as ChatbotSource;
  description: string = "lorem blah blah";

  toggleExpanded() {
    this.expanded = !this.expanded
  }
}
