import 'package:hl_lieferservice/domain/entity/car.dart';

abstract class CarSelectState {}

class CarSelectInitial extends CarSelectState {}

class CarSelectLoading extends CarSelectState {}

/// No valid car selection exists for today — the driver must choose.
/// [previousCar] is set when the driver triggered a manual change,
/// allowing the page to pre-highlight the current car and offer a cancel.
class CarSelectRequired extends CarSelectState {
  final Car? previousCar;

  CarSelectRequired({this.previousCar});
}

/// A car has been selected for today. The selection is persisted locally.
class CarSelectComplete extends CarSelectState {
  final Car selectedCar;

  CarSelectComplete({required this.selectedCar});
}

class CarSelectFailed extends CarSelectState {}