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

part 'personal_data_view_state.freezed.dart';

@freezed
abstract class PersonalDataViewState with _$PersonalDataViewState {
  const factory PersonalDataViewState({
    @Default(true) bool isLoading,
    @Default(null) UserEntity? user,
    @Default('') String name,
    @Default('') String phoneNumber,
    @Default('') String email,
    @Default('') String password,
    @Default(false) bool showPassword,
    @Default('') String errorMessage
  }) = _PersonalDataViewState;
}
