import { HomeFeedType } from "@hey/data/enums"; import NewPost from "@/components/Composer/NewPost"; import ExploreFeed from "@/components/Explore/ExploreFeed"; import PageLayout from "@/components/Shared/PageLayout"; import { useAccountStore } from "@/store/persisted/useAccountStore"; import { useHomeTabStore } from "@/store/persisted/useHomeTabStore"; import FeedType from "./FeedType"; import ForYou from "./ForYou"; import Hero from "./Hero"; import Highlights from "./Highlights"; import Timeline from "./Timeline"; const Home = () => { const { currentAccount } = useAccountStore(); const { feedType } = useHomeTabStore(); const loggedInWithAccount = Boolean(currentAccount); return ( {loggedInWithAccount ? ( <> {feedType === HomeFeedType.FOLLOWING ? ( ) : feedType === HomeFeedType.HIGHLIGHTS ? ( ) : feedType === HomeFeedType.FORYOU ? ( ) : null} ) : ( <> )} ); }; export default Home;