import React from 'react' import {View} from 'react-native' import {AppBskyActorDefs} from '@atproto/api' import {Trans} from '@lingui/macro' import {Shadow} from '#/state/cache/types' import {isInvalidHandle} from 'lib/strings/handles' import {isIOS} from 'platform/detection' import {atoms as a, useTheme, web} from '#/alf' import {NewskieDialog} from '#/components/NewskieDialog' import {Text} from '#/components/Typography' export function ProfileHeaderHandle({ profile, disableTaps, }: { profile: Shadow disableTaps?: boolean }) { const t = useTheme() const invalidHandle = isInvalidHandle(profile.handle) const blockHide = profile.viewer?.blocking || profile.viewer?.blockedBy return ( {profile.viewer?.followedBy && !blockHide ? ( Follows you ) : undefined} {invalidHandle ? ⚠Invalid Handle : `@${profile.handle}`} ) }