import 'package:flutter/foundation.dart';
import 'package:js/js.dart';

// JS interop 선언: window.showHealthCheckNotification(title, message, status)
@JS('showHealthCheckNotification')
external void _showHealthCheckNotification(
  String title,
  String message,
  String status,
);

/// 웹 플랫폼을 위한 알림 구현 (js_interop 기반)
void showNotification(String title, String message, String status) {
  try {
    _showHealthCheckNotification(title, message, status);
  } catch (e) {
    debugPrint('웹 알림 표시 실패: $e');
  }
}
