import { useIdentityData } from "components/IdentityProvider"; import { navPages, HomeButton, ReaderButton, NotificationButton, WriterButton, } from "./NavigationButtons"; import { PublicationButtons } from "./Publications"; import { Sidebar } from "./Sidebar"; import { LoginModal } from "components/LoginButton"; import { ProfileButton } from "./ProfileButton"; import { ActionButton } from "./ActionButton"; import { AccountSmall } from "components/Icons/AccountSmall"; export const DesktopNavigation = (props: { currentPage: navPages; publication?: string; }) => { let { identity } = useIdentityData(); let thisPublication = identity?.publications?.find( (pub) => pub.uri === props.publication, ); let currentlyWriter = props.currentPage === "home" || props.currentPage === "looseleafs" || props.currentPage === "pub"; return (
{identity ? ( <> {identity.atp_did && ( )} ) : ( } label="Log In/Sign Up" /> } /> )} {currentlyWriter && ( <>
)}
); };