import 'package:equatable/equatable.dart';
import 'package:proxibuy/data/models/offer_model.dart';

abstract class ProductDetailState extends Equatable {
  const ProductDetailState();

  @override
  List<Object?> get props => [];
}

class ProductDetailInitial extends ProductDetailState {}

class ProductDetailLoadInProgress extends ProductDetailState {}

class ProductDetailLoadSuccess extends ProductDetailState {
  final OfferModel offer;

  const ProductDetailLoadSuccess(this.offer);

  @override
  List<Object?> get props => [offer];
}

class ProductDetailLoadFailure extends ProductDetailState {
  final String error;

  const ProductDetailLoadFailure(this.error);

  @override
  List<Object?> get props => [error];
}