git.iko.soy/rowtype-yoga/psfp
on 7e0bbef help sign in
28 lines 745 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;
9const PSLayout = psLayout.mkLayout(fetch)();
11const Layout = ({ children }) => {
12 const siteInfo = useStaticQuery(graphql`
13 query SiteTitleQuery {
14 site {
15 siteMetadata {
16 title
17 menuLinks {
18 name
19 link
20 }
21 }
22 }
23 }
24 `);
25 return <PSLayout siteInfo={siteInfo}>{children}</PSLayout>;
26};
28export default Layout;