import {useState} from 'react' import {ScreenTransition} from '#/components/ScreenTransition' import {GetContacts} from './screens/GetContacts' import {PhoneInput} from './screens/PhoneInput' import {VerifyNumber} from './screens/VerifyNumber' import {ViewMatches} from './screens/ViewMatches' import {type Action, type State} from './state' export function SyncContactsFlow({ state, dispatch, onSkip, context = 'Standalone', }: { state: State dispatch: React.Dispatch onSkip: () => void context: 'Onboarding' | 'Standalone' }) { const [transitionDirection, _setTransitionDirection] = useState< 'Forward' | 'Backward' >('Forward') return ( {state.step === '1: phone input' && ( )} {state.step === '2: verify number' && ( )} {state.step === '3: get contacts' && ( )} {state.step === '4: view matches' && ( )} ) }