part of 'table_loader_bloc.dart';

@freezed
class TableLoaderState with _$TableLoaderState {
  factory TableLoaderState({
    required List<Table> tables,
    required Option<TableFailure> failureOption,
    Table? selectedTable,
    @Default(false) bool isFetching,
    @Default(false) bool hasReachedMax,
    @Default(1) int page,
  }) = _TableLoaderState;

  factory TableLoaderState.initial() =>
      TableLoaderState(tables: [], failureOption: none());
}
