import 'package:flutter_modular/flutter_modular.dart';

/// Extension on [IModularNavigator] to provide strongly-typed navigation
/// for the staff documents feature.
extension DocumentsNavigator on IModularNavigator {
  /// Navigates to the document upload/view page.
  /// [documentId] is the ID of the document to view or upload.
  void pushDocumentDetails(String documentId) {
    pushNamed('./details', arguments: documentId);
  }
}
