import 'package:equatable/equatable.dart';
import 'package:syncrow_web/pages/spaces_management/space_model/models/space_template_model.dart';

abstract class SpaceModelState extends Equatable {
  @override
  List<Object?> get props => [];
}

class SpaceModelInitial extends SpaceModelState {}

class SpaceModelLoading extends SpaceModelState {}

class SpaceModelLoaded extends SpaceModelState {
  final List<SpaceTemplateModel> spaceModels;

  SpaceModelLoaded({required this.spaceModels});

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

class SpaceModelError extends SpaceModelState {
  final String message;

  SpaceModelError({required this.message});

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