1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

33 lines
1008 B
JavaScript
Raw Normal View History

import * as React from "react";
import Head from "next/head";
2020-06-12 18:50:17 -07:00
// import { useRouter } from "next/router";
2020-01-19 22:06:16 -07:00
import { HyperglassProvider } from "~/components/HyperglassProvider";
2020-06-12 18:50:17 -07:00
// import Error from "./_error";
const config = process.env._HYPERGLASS_CONFIG_;
2020-01-19 22:06:16 -07:00
const Hyperglass = ({ Component, pageProps }) => {
2020-05-02 18:58:15 -07:00
// const { asPath } = useRouter();
// if (asPath === "/structured") {
// return <Error msg="/structured" statusCode={404} />;
// }
2020-04-26 09:06:54 -07:00
return (
<>
<Head>
<title>hyperglass</title>
<meta httpEquiv="Content-Type" content="text/html" />
<meta charSet="UTF-8" />
<meta name="og:type" content="website" />
<meta name="og:image" content="/images/opengraph.jpg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
</Head>
<HyperglassProvider config={config}>
<Component {...pageProps} />
</HyperglassProvider>
</>
2020-04-26 09:06:54 -07:00
);
2020-01-19 22:06:16 -07:00
};
export default Hyperglass;