import type { NotificationPort } from '@domain/ports/NotificationPort';

export class ElectronNotification implements NotificationPort {
  showNotification(title: string, body: string): void {
    const api = (window as any).electronAPI;
    if (api?.showNotification) {
      api.showNotification(title, body);
    }
  }

  sendMobileNotification(url: string, title: string, message: string): void {
    const api = (window as any).electronAPI;
    if (api?.sendNtfy) {
      api.sendNtfy(url, title, message);
    }
  }
}
