-
Notifications
You must be signed in to change notification settings - Fork 110
/
Copy pathhead.tsx
33 lines (28 loc) · 917 Bytes
/
head.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import React from "react";
import NextHead from "next/head";
import { string } from "prop-types";
const defaultDescription = "Create multisigs and send tokens on any cosmos based chain";
const defaultOGURL = "";
interface Props {
title?: string;
description?: string;
url?: string;
}
const Head = (props: Props) => (
<NextHead>
<meta charSet="UTF-8" />
<title>{props.title || ""}</title>
<meta name="description" content={props.description || defaultDescription} />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta property="og:url" content={props.url || defaultOGURL} />
<meta property="og:title" content={props.title || ""} />
<meta property="og:description" content={props.description || defaultDescription} />
</NextHead>
);
Head.propTypes = {
title: string,
description: string,
url: string,
ogImage: string,
};
export default Head;