diff options
Diffstat (limited to 'src/view/screens/Search/Explore.tsx')
-rw-r--r-- | src/view/screens/Search/Explore.tsx | 48 |
1 files changed, 37 insertions, 11 deletions
diff --git a/src/view/screens/Search/Explore.tsx b/src/view/screens/Search/Explore.tsx index bd2ebe5d5..378ea59a4 100644 --- a/src/view/screens/Search/Explore.tsx +++ b/src/view/screens/Search/Explore.tsx @@ -24,6 +24,8 @@ import { ProfileCardFeedLoadingPlaceholder, } from '#/view/com/util/LoadingPlaceholder' import {UserAvatar} from '#/view/com/util/UserAvatar' +import {ExploreRecommendations} from '#/screens/Search/components/ExploreRecommendations' +import {ExploreTrendingTopics} from '#/screens/Search/components/ExploreTrendingTopics' import {atoms as a, useTheme, ViewStyleProp} from '#/alf' import {Button} from '#/components/Button' import * as FeedCard from '#/components/FeedCard' @@ -240,6 +242,14 @@ type ExploreScreenItems = icon: React.ComponentType<SVGIconProps> } | { + type: 'trendingTopics' + key: string + } + | { + type: 'recommendations' + key: string + } + | { type: 'profile' key: string profile: AppBskyActorDefs.ProfileView @@ -325,17 +335,27 @@ export function Explore() { ]) const items = React.useMemo<ExploreScreenItems[]>(() => { - const i: ExploreScreenItems[] = [ - { - type: 'header', - key: 'suggested-follows-header', - title: _(msg`Suggested accounts`), - description: _( - msg`Follow more accounts to get connected to your interests and build your network.`, - ), - icon: Person, - }, - ] + const i: ExploreScreenItems[] = [] + + i.push({ + type: 'trendingTopics', + key: `trending-topics`, + }) + + i.push({ + type: 'recommendations', + key: `recommendations`, + }) + + i.push({ + type: 'header', + key: 'suggested-follows-header', + title: _(msg`Suggested accounts`), + description: _( + msg`Follow more accounts to get connected to your interests and build your network.`, + ), + icon: Person, + }) if (profiles) { // Currently the responses contain duplicate items. @@ -490,6 +510,12 @@ export function Explore() { /> ) } + case 'trendingTopics': { + return <ExploreTrendingTopics /> + } + case 'recommendations': { + return <ExploreRecommendations /> + } case 'profile': { return ( <View style={[a.border_b, t.atoms.border_contrast_low]}> |