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

abstract class CreateSpaceModelState extends Equatable {
  const CreateSpaceModelState();

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

class CreateSpaceModelInitial extends CreateSpaceModelState {}

class CreateSpaceModelLoading extends CreateSpaceModelState {}

class CreateSpaceModelLoaded extends CreateSpaceModelState {
  final SpaceTemplateModel space;
  final String? errorMessage;

  CreateSpaceModelLoaded(this.space, {this.errorMessage});

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

class CreateSpaceModelError extends CreateSpaceModelState {
  final String message;

  CreateSpaceModelError(this.message);
}
