import 'package:flutter_riverpod/flutter_riverpod.dart';

enum NavTab {
  ranking,
  mining,
  trading,
  profile,
}

class NavigationNotifier extends StateNotifier<NavTab> {
  NavigationNotifier() : super(NavTab.ranking);

  void setTab(NavTab tab) {
    state = tab;
  }
}

final navigationProvider = StateNotifierProvider<NavigationNotifier, NavTab>((ref) {
  return NavigationNotifier();
});
