import {useCallback} from 'react' import {View} from 'react-native' import {Image} from 'expo-image' import {LinearGradient} from 'expo-linear-gradient' import {msg} from '@lingui/core/macro' import {useLingui} from '@lingui/react' import {Trans} from '@lingui/react/macro' import {atoms as a, useTheme, web} from '#/alf' import {Button, ButtonText} from '#/components/Button' import {isFindContactsFeatureEnabled} from '#/components/contacts/country-allowlist' import * as Dialog from '#/components/Dialog' import {useNuxDialogContext} from '#/components/dialogs/nuxs' import { createIsEnabledCheck, isExistingUserAsOf, } from '#/components/dialogs/nuxs/utils' import {Text} from '#/components/Typography' import {useAnalytics} from '#/analytics' import {IS_E2E, IS_NATIVE, IS_WEB} from '#/env' import {navigate} from '#/Navigation' export const enabled = createIsEnabledCheck(props => { return ( !IS_E2E && IS_NATIVE && isExistingUserAsOf( '2025-12-16T00:00:00.000Z', props.currentProfile.createdAt, ) && isFindContactsFeatureEnabled(props.geolocation.countryCode) ) }) export function FindContactsAnnouncement() { const t = useTheme() const {_} = useLingui() const ax = useAnalytics() const nuxDialogs = useNuxDialogContext() const control = Dialog.useDialogControl() Dialog.useAutoOpen(control) const onClose = useCallback(() => { nuxDialogs.dismissActiveNux() }, [nuxDialogs]) return ( {_( Find your friends Bluesky is more fun with friends! Import your contacts to see who’s already here. ) }