import 'package:flutter_riverpod/flutter_riverpod.dart';
import '../../core/services/notification_service.dart';

/// NotificationService 싱글톤 Provider
final notificationServiceProvider = Provider<NotificationService>((ref) {
  return NotificationService();
});

/// 알림 권한 상태 Provider
final notificationPermissionProvider = FutureProvider<bool>((ref) async {
  final service = ref.watch(notificationServiceProvider);
  return await service.checkPermission();
});

/// 예약된 알림 목록 Provider
final pendingNotificationsProvider = FutureProvider((ref) async {
  final service = ref.watch(notificationServiceProvider);
  return await service.getPendingNotifications();
});
