text: import React from "react";
  import { useStaticQuery, graphql, Link } from "gatsby";
  import SEO from '../components/SEO';
  import Posts from '../components/posts';
  
  const getData = graphql`
      {
          site {
            siteMetadata {
              title
              siteUrl
              description
            }
          }
        }
  `
  
  export default () => {
    const response = useStaticQuery(getData);
    console.log(response);
    return (
      <>
        <SEO title="Main Page" />
        <p>Index Page</p>
        <h1>Static Query Posts</h1>
        <Link to="/posts">Posts page</Link>
        <Posts />
      </>
    )
  }
  