import { Directive, ElementRef, HostListener } from '@angular/core';
import { TranslatorService } from '../../services/translator/translator.service';
import { CommonService } from '../../services/common/common.service';
import { FeedbackService } from './feedback.service';

@Directive({
  selector: '[feedback]'
})
export class FeedbackDirective {

  constructor(
    private cs: CommonService,
    private ts: TranslatorService,
    private el: ElementRef,
    private feedBackService: FeedbackService
  ) {

  }


  @HostListener('mousedown') onMouseEnter() {
    this.feedBackService.vibrate();
  }
}
