import '../domain/product_draft.dart';
import '../domain/product_publishing_repository.dart';

/// Use case: publish a single product draft by its [id].
class PublishProduct {
  final ProductPublishingRepository repository;

  PublishProduct(this.repository);

  Future<ProductDraft> call(String id) => repository.publishDraft(id);
}
