import 'package:krow_core/core.dart';
import '../arguments/get_experience_arguments.dart';
import '../repositories/experience_repository_interface.dart';

/// Use case for fetching staff skills.
class GetStaffSkillsUseCase implements UseCase<GetExperienceArguments, List<String>> {
  final ExperienceRepositoryInterface _repository;

  GetStaffSkillsUseCase(this._repository);

  @override
  Future<List<String>> call(GetExperienceArguments input) {
    return _repository.getSkills(input.staffId);
  }
}
