28 lines
841 B
JavaScript
28 lines
841 B
JavaScript
import React from "react";
|
|
import NextHead from "next/head";
|
|
import { string } from "prop-types";
|
|
|
|
const defaultDescription = "*:;;;:*:;;;:**:;;;:*:;;;:*COSMOS MULTISIGN*:;;;:*:;;;:**:;;;:*:;;;:*";
|
|
const defaultOGURL = "";
|
|
|
|
const Head = (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;
|