import {GetContacts} from './screens/GetContacts' import {PhoneInput} from './screens/PhoneInput' import {VerifyNumber} from './screens/VerifyNumber' import {ViewMatches} from './screens/ViewMatches' import {type Action, FindContactsGoBackContext, type State} from './state' export function FindContactsFlow({ state, dispatch, onBack, onCancel, context = 'Standalone', }: { state: State dispatch: React.ActionDispatch<[Action]> onBack?: () => void onCancel: () => void context: 'Onboarding' | 'Standalone' }) { return ( {state.step === '1: phone input' && ( )} {state.step === '2: verify number' && ( )} {state.step === '3: get contacts' && ( )} {state.step === '4: view matches' && ( )} ) }