git.iko.soy/rowtype-yoga/psfp
on 081ef00 help sign in
35 lines 774 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("../../output/PSLayout/index.js"); // [FIXME] use the next line
6// const psLayout = require("./PSLayout.purs");
7const fetch = typeof window !== "undefined" && window.fetch;
8import Img from "gatsby-image";
10const PSLayout = psLayout.mkLayout(fetch)();
12const query = graphql`
13 query {
14 site {
15 siteMetadata {
16 title
17 menuLinks {
18 name
19 link
20 }
21 }
22 }
23 }
24`;
26const Layout = ({ children }) => {
27 const q = useStaticQuery(query);
28 return (
29 <PSLayout siteInfo={q.site}>
30 {children}
31 </PSLayout>
32 );
33};
35export default Layout;