import { Text, View } from 'react-native'; import { useTranslation } from 'react-i18next'; import { Ionicons } from '@expo/vector-icons'; import { useColors } from '../../../lib/theme'; import { apiFetch } from '../../../lib/api'; import { invalidateMe } from '../../../hooks/useMe'; import { OnboardingShell } from '../OnboardingShell'; import { LyraBubble } from '../LyraBubble'; import { CTABar } from '../CTABar'; /** * DEV-STUB für Stage Payment. * * Production-Variante (Phase 0 vom Strategist-Plan): * - iOS: RevenueCat-Purchase-Sheet öffnet sich für 14-Tage-Pro-Trial * - Web/Android: Stripe-Checkout * * Aktueller Dev-Stub: zeigt "RevenueCat kommt"-Erklärung + Button der * step='pre_protection' im Backend setzt + zum nächsten Slide weiterleitet. * Sichtbar als Dev-Banner damit niemand denkt das wäre die finale UX. */ export function PaymentSlide({ onCompleted, current, total, }: { onCompleted: () => void; current: number; total: number; }) { const { t } = useTranslation(); const colors = useColors(); async function devSkipPayment() { await apiFetch('/api/profile/me/onboarding-step', { method: 'PATCH', body: { step: 'pre_protection' }, }).catch(() => {}); invalidateMe(); onCompleted(); } return ( } > {t('onboarding.payment.dev_label')} {t('onboarding.payment.dev_body')} ); }