mirrored_repositories/KwikShop/lib/features/products/domain
import 'package:kwikshop/core/usecase/usecase.dart';
import 'package:kwikshop/features/products/domain/entities/products.dart';
import 'package:kwikshop/features/products/domain/repository/products_repository.dart';

import '../../../categories/domain/entities.dart';

class ProductsUseCase implements UseCase<List<Product>, Categories> {
  final ProductsRepository _productsRepository;
  const ProductsUseCase(this._productsRepository);
  @override
  List<Product> call({required Categories params}) =>
      _productsRepository.loadAllProducts(params);
}
