part of 'set_password_form_bloc.dart';

@freezed
class SetPasswordFormState with _$SetPasswordFormState {
  const factory SetPasswordFormState({
    required String registrationToken,
    required String password,
    required String confirmPassword,
    required Option<Either<AuthFailure, Login>> failureOrSetPasswordOption,
    @Default(false) bool isSubmitting,
    @Default(false) bool showErrorMessages,
  }) = _SetPasswordFormState;

  factory SetPasswordFormState.initial() => SetPasswordFormState(
    registrationToken: '',
    password: '',
    confirmPassword: '',
    failureOrSetPasswordOption: none(),
  );
}
