mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 04:16:37 -04:00
46 lines
1.2 KiB
JavaScript
46 lines
1.2 KiB
JavaScript
import React from 'react';
|
|
import NoSSR from 'react-no-ssr';
|
|
import Router from '../router.js'
|
|
import Core from "meteor/nova:core";
|
|
|
|
const Messages = Core.Messages;
|
|
|
|
import SmartContainers from "meteor/utilities:react-list-container";
|
|
const ListContainer = SmartContainers.ListContainer;
|
|
|
|
const Header = ({currentUser}) => {
|
|
|
|
({Logo, CategoriesList, NewPostButton, UserMenu, AccountsMenu} = Telescope.components);
|
|
|
|
const logoUrl = Telescope.settings.get("logoUrl");
|
|
const siteTitle = Telescope.settings.get("title", "Telescope");
|
|
const tagline = Telescope.settings.get("tagline");
|
|
|
|
return (
|
|
<div className="header-wrapper">
|
|
|
|
<header className="header">
|
|
|
|
<div className="logo">
|
|
<Logo logoUrl={logoUrl} siteTitle={siteTitle} />
|
|
{tagline ? <h2 className="tagline">{tagline}</h2> : "" }
|
|
</div>
|
|
|
|
<div className="nav">
|
|
|
|
<div className="nav-user">
|
|
{currentUser ? <UserMenu user={currentUser}/> : <AccountsMenu/>}
|
|
</div>
|
|
|
|
<div className="nav-new-post">
|
|
<NewPostButton/>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
module.exports = Header;
|