import React from 'react' import {View} from 'react-native' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {TIMELINE_SAVED_FEED} from '#/lib/constants' import {useAddSavedFeedsMutation} from '#/state/queries/preferences' import {atoms as a, useTheme} from '#/alf' import {InlineLinkText} from '#/components/Link' import {Text} from '#/components/Typography' export function NoFollowingFeed() { const t = useTheme() const {_} = useLingui() const {mutateAsync: addSavedFeeds} = useAddSavedFeedsMutation() const addRecommendedFeeds = React.useCallback( (e: any) => { e.preventDefault() addSavedFeeds([ { ...TIMELINE_SAVED_FEED, pinned: true, }, ]) // prevent navigation return false }, [addSavedFeeds], ) return ( Looks like you're missing a following feed.{' '} Click here to add one. ) }