text: import React from 'react';
  import PropTypes from 'prop-types';
  import Helmet from 'react-helmet';
  import { StaticQuery, graphql } from 'gatsby';
  
  import Header from './header';
  import Footer from './Footer';
  
  import '../css/index.css';
  
  const Layout = ({ children, data }) =>
    <div>
      <Helmet
        title={data.site.siteMetadata.title}
        meta={[
          { name: 'description', content: 'Sample' },
          { name: 'keywords', content: 'sample, something' },
        ]}
      />
      <Header />
      {children}
      <Footer />
    </div>;
  
  Layout.propTypes = {
    children: PropTypes.object,
  };
  
  export default ({ children }) =>
    <StaticQuery
      query={graphql`
        query SiteTitleQuery {
          site {
            siteMetadata {
              title
            }
          }
        }
      `}
      render={data => {
        return <Layout data={data} children={children} />;
      }}
    />;
  