import 'package:cs_resources/generated/assets.dart';
import 'package:cs_resources/generated/l10n.dart';


class RepairVmState {
  List<Map<String, dynamic>>? topSectionsData;
  int currentPageViewIdx = 0;
  dynamic? tabsRouter;


  RepairVmState({
    List<Map<String, dynamic>>? topSectionsData,
    required this.currentPageViewIdx,
    this.tabsRouter,
  }) : topSectionsData = topSectionsData?? [
    {
      "title": S.current.service,
      "code": "service",
      "icon": Assets.serviceServiceType,
    },
    {
      "title": S.current.in_progress,
      "code": "inProgress",
      "icon": Assets.serviceInProgress,
    },
    {
      "title": S.current.history,
      "code": "history",
      "icon": Assets.serviceHistory,
    },
  ];

  RepairVmState copyWith({
    List<Map<String, dynamic>>? topSectionsData,
    int? currentPageViewIdx,
    dynamic? tabsRouter,
  }) {
    return RepairVmState(
      topSectionsData: topSectionsData ?? this.topSectionsData,
      currentPageViewIdx: currentPageViewIdx ?? this.currentPageViewIdx,
      tabsRouter: tabsRouter ?? this.tabsRouter,
    );
  }
}