Hey is a decentralized and permissionless social media app built with Lens Protocol 馃尶
at main 29 lines 755 B view raw
1import { memo } from "react"; 2import SignupCard from "@/components/Shared/Auth/SignupCard"; 3import Footer from "@/components/Shared/Footer"; 4import { useAccountStore } from "@/store/persisted/useAccountStore"; 5import BetaBanner from "./BetaBanner"; 6import ProBanner from "./ProBanner"; 7import WhoToFollow from "./WhoToFollow"; 8 9const Sidebar = () => { 10 const { currentAccount } = useAccountStore(); 11 const loggedInWithAccount = Boolean(currentAccount); 12 const loggedOut = !loggedInWithAccount; 13 14 return ( 15 <> 16 {loggedOut && <SignupCard />} 17 {loggedInWithAccount && ( 18 <> 19 <BetaBanner /> 20 <ProBanner /> 21 <WhoToFollow /> 22 </> 23 )} 24 <Footer /> 25 </> 26 ); 27}; 28 29export default memo(Sidebar);