import 'package:flutter_riverpod/flutter_riverpod.dart';

/// Phase 4 Stage 7 — UX A/B toggle for the two-step end-session confirm.
///
/// Backed by `app_config.end_session_two_step_confirm` (seeded `true` in
/// Phase 4 Stage 1.5). The plan mentions an A/B switch but no client-facing
/// endpoint is exposed yet — Stage 1.5 only seeded the row. Until a public
/// `/api/shared/config/app-flags` (or similar) is added, this provider keeps
/// the seed default on-device. When the endpoint lands, swap the override
/// for a `FutureProvider` that fetches it.
///
/// TODO(phase4-followup): wire to backend once the read-side endpoint is added.
final endSessionTwoStepConfirmProvider = Provider<bool>((ref) => true);
