import 'package:flutter_modular/flutter_modular.dart';

/// Typed navigation for the Client Authentication feature.
///
/// This extension on [IModularNavigator] provides named methods for
/// navigating between authentication pages, reducing magic strings and
/// improving maintainability.
extension ClientAuthNavigator on IModularNavigator {
  /// Navigates to the sign in page using a push named route.
  void pushClientSignIn() {
    pushNamed('/client-sign-in');
  }

  /// Navigates to the sign up page using a push named route.
  void pushClientSignUp() {
    pushNamed('/client-sign-up');
  }

  /// Navigates to the main client home dashboard.
  ///
  /// Uses absolute path navigation to the client main shell,
  /// which will display the home tab by default.
  void navigateClientHome() {
    navigate('/client-main/home');
  }
}
