part of 'change_password_form_bloc.dart';

@freezed
class ChangePasswordFormState with _$ChangePasswordFormState {
  const factory ChangePasswordFormState({
    required String newPassword,
    required String currentPassword,
    required Option<Either<UserFailure, Unit>> failureOrChangePasswordOption,
    @Default(false) bool isSubmitting,
    @Default(false) bool showErrorMessages,
  }) = _ChangePasswordFormState;

  factory ChangePasswordFormState.initial() => ChangePasswordFormState(
    currentPassword: '',
    newPassword: '',
    failureOrChangePasswordOption: none(),
  );
}
