import 'package:flutter_riverpod/flutter_riverpod.dart';

class AppConfig {
  final String apiBaseUrl;
  final String wsBaseUrl;
  final String environment;

  const AppConfig({
    required this.apiBaseUrl,
    required this.wsBaseUrl,
    required this.environment,
  });

  factory AppConfig.development() => const AppConfig(
    apiBaseUrl: 'http://10.0.2.2:18000',
    wsBaseUrl: 'ws://10.0.2.2:18000',
    environment: 'development',
  );

  factory AppConfig.production() => const AppConfig(
    apiBaseUrl: 'http://154.84.135.121:18000',
    wsBaseUrl: 'ws://154.84.135.121:18000',
    environment: 'production',
  );
}

final appConfigProvider = Provider<AppConfig>((ref) {
  return AppConfig.production();
});
