import { useIdentityData } from "components/IdentityProvider"; import { Separator } from "components/Layout"; import { navPages, NotificationButton, ReaderButton, WriterButton, } from "./NavigationButtons"; import { PublicationNavigation } from "./PublicationNavigation"; import { LoginModal } from "components/LoginButton"; import { ProfileButton } from "./ProfileButton"; import { ActionButton } from "./ActionButton"; import { AccountSmall } from "components/Icons/AccountSmall"; export const MobileNavigation = (props: { currentPage: navPages; currentPublicationUri?: string; currentProfileDid?: string; }) => { let { identity } = useIdentityData(); let compactOnMobile = props.currentPage === "home" || props.currentPage === "looseleafs" || props.currentPage === "pub"; return (
{compactOnMobile && ( <> )}
{identity ? (
{identity.atp_did && }
) : ( } label="Log In/Sign Up" /> } /> )}
); };