import 'package:legacy_shared/legacy_shared.dart';
import 'package:freezed_annotation/freezed_annotation.dart';

part 'app_users_view_state.freezed.dart';

@freezed
abstract class AppUsersViewState with _$AppUsersViewState {
  const factory AppUsersViewState({
    @Default(false) bool isLoading,
    @Default(null) UserEntity? loggedUser,
    @Default([]) List<UserEntity> appUsers,
    @Default(false) bool isEditing,
    @Default('') String errorMessage
  }) = _AppUsersViewState;
}
