import React from 'react';
import Helmet from 'react-helmet';
import { graphql, StaticQuery } from 'gatsby';
import { ThemeProvider } from 'emotion-theming';
import Header from './header';
import Footer from './footer';
import GlobalStyles from '../global-styles';
import theme from '../theme';
const LAYOUT_QUERY = graphql`
query layoutQuery {
site {
siteMetadata {
title
description
}
}
footer: file(relativePath: { regex: "/global/" }) {
childDataYaml {
footer {
buttons {
url
name
}
}
}
}
}
`;
export const LayoutTemplate = ({ children }) => (
{children}
);
const Layout = ({ hasPageHero, children }) => {
return (
{data => {
const { title, description } = data.site.siteMetadata;
return (
{children}
);
}}
);
};
export default Layout;