part of 'company_settings_cubit.dart';

class CompanySettingsState extends Equatable {
  final CompanySettingsStatus status;
  final CompanyModel? company;
  final String? errorMessage;

  const CompanySettingsState({
    this.status = CompanySettingsStatus.initial,
    this.company,
    this.errorMessage,
  });

  CompanySettingsState copyWith({
    CompanySettingsStatus? status,
    CompanyModel? company,
    String? errorMessage,
  }) {
    return CompanySettingsState(
      status: status ?? this.status,
      company: company ?? this.company,
      errorMessage: errorMessage,
    );
  }

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

enum CompanySettingsStatus {
  initial,
  ready,
  saving,
  uploadingLogo,
  success,
  failure,
}
