import { Component } from '@angular/core';
import { Observable } from 'rxjs';
import { NotificationService } from '../../services/notification.service';
import { CommonModule } from '@angular/common';
import { TranslateModule } from '@ngx-translate/core';

@Component({
  selector: 'app-notifications',
  imports: [CommonModule, TranslateModule],
  templateUrl: './notifications.component.html',
  styleUrl: './notifications.component.scss'
})
export class NotificationsComponent {
notifications$: Observable<{ type: string; message: string; } | null>

  constructor(private notificationService: NotificationService) {
    this.notifications$ = this.notificationService.notifications$;
  }
  clearNotification() {
    this.notificationService.clearNotification();
  }
}
