import 'package:flutter_riverpod/flutter_riverpod.dart';

class HomeSummary {
  final int expensePending;
  final int overtimePending;
  final int vehiclePending;
  final int expenseApplyPending;
  final int logCount;
  final int announcementCount;
  final int announcementUnread;
  final int totalCount;

  const HomeSummary({
    required this.expensePending,
    required this.overtimePending,
    required this.vehiclePending,
    this.expenseApplyPending = 0,
    required this.logCount,
    required this.announcementCount,
    this.announcementUnread = 0,
    required this.totalCount,
  });
}

final homeSummaryProvider = FutureProvider<HomeSummary>((ref) async {
  return const HomeSummary(
    expensePending: 3,
    overtimePending: 1,
    vehiclePending: 2,
    expenseApplyPending: 1,
    logCount: 12,
    announcementCount: 5,
    announcementUnread: 2,
    totalCount: 28,
  );
});
