import 'package:krow_core/core.dart';
import 'package:krow_domain/krow_domain.dart';
import '../repositories/documents_repository.dart';

/// Use case for fetching staff compliance documents.
///
/// Delegates to [DocumentsRepository].
class GetDocumentsUseCase implements NoInputUseCase<List<StaffDocument>> {
  final DocumentsRepository _repository;

  GetDocumentsUseCase(this._repository);

  @override
  Future<List<StaffDocument>> call() {
    return _repository.getDocuments();
  }
}
