part of 'profit_sharing_detail_loader_bloc.dart';

@freezed
class ProfitSharingDetailLoaderEvent with _$ProfitSharingDetailLoaderEvent {
  const factory ProfitSharingDetailLoaderEvent.fetched({
    required String parentCategoryId,
    required DateTime dateFrom,
    required DateTime dateTo,
  }) = _Fetched;

  /// Buka/tutup daftar produk pada satu sub kategori.
  const factory ProfitSharingDetailLoaderEvent.expandedCategoryChanged(
    String categoryId,
  ) = _ExpandedCategoryChanged;
}
