git.iko.soy/rowtype-yoga/psfp
on d37fadc help sign in
31 lines 717 B history raw
1import React from "react";
2import PropTypes from "prop-types";
3import { graphql, useStaticQuery } from "gatsby";
4import { preToCodeBlock } from "mdx-utils";
5const psLayout = require("./PSLayout.purs");
6const fetch = typeof window !== "undefined" && window.fetch;
8const PSLayout = psLayout.mkLayout(fetch)();
10const Layout = ({ children }) => {
11 const siteInfo = useStaticQuery(graphql`
12 query SiteTitleQuery {
13 site {
14 siteMetadata {
15 title
16 menuLinks {
17 name
18 link
19 }
20 }
21 }
22 }
23 `);
24 return <PSLayout siteInfo={siteInfo}>{children}</PSLayout>;
25};
27Layout.propTypes = {
28 children: PropTypes.node.isRequired
29};
31export default Layout;