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

@Component({
  selector: 'sae-translate-texts',
  standalone: true,
  imports: [FormsModule],
  templateUrl: './translate-texts.html',
  styleUrl: './translate-texts.css'
})
export class TranslateTexts {
  public fromText: string = ''
  public toText: 'fromText' | 'toText' | '' = ''

  emptyText(someText: 'fromText' | 'toText') {
    this[someText] = '';
  }
}
