import 'package:kasy_kit/features/subscription/ui/component/premium_page_factory.dart';

/// Debug-only GoRouter paths (registered when [kDebugMode] is true).
///
/// From the admin bottom sheet, use [pushAdminDebugRouteFromSheet] so the sheet
/// stays open when the user pops back.
const String adminRoutePaywalls = '/admin/paywalls';
const String adminRouteHomeWidgets = '/admin/home-widgets';
const String adminRouteSendPush = '/admin/send-push';

String adminRoutePremiumPreview(String variant) => '/admin/premium/$variant';

PaywallFactory? paywallFactoryFromAdminRoute(String? variant) {
  return switch (variant) {
    'withSwitch' => PaywallFactory.withSwitch,
    'basic' => PaywallFactory.basic,
    'basicRow' => PaywallFactory.basicRow,
    'minimal' => PaywallFactory.minimal,
    _ => null,
  };
}
