lbry-sec/component/header.jsx
Sean Yesmunt a7f93a5c41 wip md
2021-03-28 22:11:06 -04:00

48 lines
1.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import Head from 'next/head';
import Image from 'next/image';
import Link from 'next/link';
import { t, m } from '../i18n';
export function Header(props) {
const { faqPage } = props;
const lang = 'en'; // req.query.lang || 'en'
function __(message) {
return t(message, lang);
}
return (
<>
<Head>
<title>{__(m.title)}</title>
<link rel="icon" href="/favicon.ico" />
<meta
property="og:image"
content="https://i.imgur.com/pnU7PJz.jpg"
key="image"
/>
<meta
property="og:description"
content="The SEC doesnt understand blockchain or crypto. Theyre saying LBC is a security, its not!"
key="description"
/>
</Head>
<header className={faqPage ? 'header header--faq' : 'header'}>
<Link href="/">
<span className="title">{__(m.title)}</span>
</Link>
{!faqPage && (
<div className="header__links">
<Link className="link" href="/faq">
{__(m.faq)}
</Link>
</div>
)}
</header>
</>
);
}