import 'package:equatable/equatable.dart';
import 'package:laki_icu_app/models/bo/monitoring_bo.dart';

class DefaultLayoutState extends Equatable {
  final List<MonitoringMenuItemBO> menuItems;
  final bool isLoading;
  final String? error;

  const DefaultLayoutState({
    this.menuItems = const [],
    this.isLoading = false,
    this.error,
  });

  DefaultLayoutState copyWith({
    List<MonitoringMenuItemBO>? menuItems,
    bool? isLoading,
    String? error,
  }) {
    return DefaultLayoutState(
      menuItems: menuItems ?? this.menuItems,
      isLoading: isLoading ?? this.isLoading,
      error: error ?? this.error,
    );
  }

  @override
  List<Object?> get props => [menuItems, isLoading, error];
}
