import {View} from 'react-native' import {Trans, useLingui} from '@lingui/react/macro' import {useSession} from '#/state/session' import {atoms as a, useTheme, web} from '#/alf' import {Button, ButtonText} from '#/components/Button' import * as Dialog from '#/components/Dialog' import {Bot_Filled as RobotIcon} from '#/components/icons/Bot' import {Text} from '#/components/Typography' import {navigate} from '#/Navigation' import type * as bsky from '#/types/bsky' export function BotAccountAlert({ control, profile, }: { control: Dialog.DialogControlProps profile: bsky.profile.AnyProfileView }) { const {t: l} = useLingui() const t = useTheme() const {currentAccount} = useSession() const isSelf = profile.did === currentAccount?.did const description = isSelf ? l`You have marked this account as automated. You can remove it at any time from your account settings.` : l`This account has been marked as automated by its owner.` return ( {description} {isSelf ? ( ) : null} ) }