import {Text as RNText, View} from 'react-native' import {Image} from 'expo-image' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {urls} from '#/lib/constants' import {getUserDisplayName} from '#/lib/getUserDisplayName' import {NON_BREAKING_SPACE} from '#/lib/strings/constants' import {logger} from '#/logger' import {useSession} from '#/state/session' import {atoms as a, useBreakpoints, useTheme} from '#/alf' import {Button, ButtonText} from '#/components/Button' import * as Dialog from '#/components/Dialog' import {VerifierCheck} from '#/components/icons/VerifierCheck' import {Link} from '#/components/Link' import {Text} from '#/components/Typography' import {type FullVerificationState} from '#/components/verification' import type * as bsky from '#/types/bsky' export {useDialogControl} from '#/components/Dialog' export function VerifierDialog({ control, profile, verificationState, }: { control: Dialog.DialogControlProps profile: bsky.profile.AnyProfileView verificationState: FullVerificationState }) { return ( ) } function Inner({ profile, control, }: { control: Dialog.DialogControlProps profile: bsky.profile.AnyProfileView verificationState: FullVerificationState }) { const t = useTheme() const {_} = useLingui() const {gtMobile} = useBreakpoints() const {currentAccount} = useSession() const isSelf = profile.did === currentAccount?.did const userName = getUserDisplayName(profile) const label = isSelf ? _(msg`You are a trusted verifier`) : _(msg`${userName} is a trusted verifier`) return ( {_( {label} Accounts with a scalloped blue check mark {NON_BREAKING_SPACE} {NON_BREAKING_SPACE} can verify others. These trusted verifiers are selected by Bluesky. { logger.metric('verification:learn-more', { location: 'verifierDialog', }) }}> Learn more ) }