import 'package:flutter_modular/flutter_modular.dart';
import '../constants/staff_main_routes.dart';

/// Extension to provide typed navigation for the Staff Main feature.
extension StaffMainNavigator on IModularNavigator {
  /// Navigates to the Staff Main Shell (Home).
  /// This replaces the current navigation stack.
  void navigateStaffMain() {
    navigate('${StaffMainRoutes.modulePath}/home/');
  }

  /// Navigates to the Shifts tab.
  void navigateToShifts() {
    navigate(StaffMainRoutes.shiftsFull);
  }

  /// Navigates to the Payments tab.
  void navigateToPayments() {
    navigate(StaffMainRoutes.paymentsFull);
  }

  /// Navigates to the Home tab.
  void navigateToHome() {
    navigate('${StaffMainRoutes.homeFull}/');
  }

  /// Navigates to the Clock In tab.
  void navigateToClockIn() {
    navigate(StaffMainRoutes.clockInFull);
  }

  /// Navigates to the Profile tab.
  void navigateToProfile() {
    navigate(StaffMainRoutes.profileFull);
  }
}
