import 'package:get/get.dart';
import 'package:traderscircuit/view/MainScreen/HomeScreen.dart';
import 'package:traderscircuit/view/MainScreen/PastPerformance.dart';
import 'package:traderscircuit/view/MainScreen/Portfolio/Holdings.dart';
import 'package:traderscircuit/view/MainScreen/Portfolio/PortfolioEmpty.dart';
import 'package:traderscircuit/view/MainScreen/ShortTrade.dart';

class MainController extends GetxController {
  var selectedIndex = 0.obs;

  var currentTab = [
    const HomeScreen(),
    const ShortTrade(),
    const PastPerformance(),
    const Portfolio(),
  ].obs;

  void updateTab(int index) {
    selectedIndex.value = index;
  }
}
