/* * SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file) * * SPDX-License-Identifier: AGPL-3.0-only */ import React, { Fragment } from 'react' import { Navbar } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' import { useApplicationState } from '../../../../hooks/common/use-application-state' import { HeaderNavLink } from './header-nav-link' import { NewGuestNoteButton } from '../new-guest-note-button' import { NewUserNoteButton } from '../new-user-note-button' import { SignInButton } from '../sign-in-button' import { UserDropdown } from '../user-dropdown' import { cypressId } from '../../../../utils/cypress-attribute' /** * Renders a header bar for the intro and history page. */ const HeaderBar: React.FC = () => { useTranslation() const userExists = useApplicationState((state) => !!state.user) return (
{!userExists ? ( ) : ( )}
) } export { HeaderBar }