part of 'time_card_bloc.dart';

abstract class TimeCardState extends Equatable {
  const TimeCardState();
  @override
  List<Object?> get props => [];
}

class TimeCardInitial extends TimeCardState {}
class TimeCardLoading extends TimeCardState {}
class TimeCardLoaded extends TimeCardState {
  final List<TimeCard> timeCards;
  final DateTime selectedMonth;
  final double totalHours;
  final double totalEarnings;

  const TimeCardLoaded({
    required this.timeCards,
    required this.selectedMonth,
    required this.totalHours,
    required this.totalEarnings,
  });

  @override
  List<Object?> get props => [timeCards, selectedMonth, totalHours, totalEarnings];
}
class TimeCardError extends TimeCardState {
  final String message;
  const TimeCardError(this.message);
  @override
  List<Object?> get props => [message];
}
