import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:functions/src/features/contacts/domain/entities/contact_entity.dart';

part 'contacts_view_state.freezed.dart';

@freezed
abstract class ContactsViewState with _$ContactsViewState {
  const factory ContactsViewState({
    @Default([]) List<ContactEntity> contacts,
    @Default(false) bool isLoading,
    @Default(false) bool isEditing,
    @Default('') String name,
    @Default('') String phone,
    @Default('') String errorMessage,
  }) = _ContactsViewState;
}
