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

/// Use case for retrieving pending shift assignments.
///
/// This use case delegates to [ShiftsRepositoryInterface].
class GetPendingAssignmentsUseCase extends NoInputUseCase<List<Shift>> {
  final ShiftsRepositoryInterface repository;

  GetPendingAssignmentsUseCase(this.repository);

  @override
  Future<List<Shift>> call() async {
    return repository.getPendingAssignments();
  }
}

