This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { useStaticQuery, graphql } from 'gatsby'; | |
import Img from 'gatsby-image'; | |
/* | |
* This component is built using `gatsby-image` to automatically serve optimized | |
* images with lazy loading and reduced file sizes. The image is loaded using a | |
* `useStaticQuery`, which allows us to load the image from directly within this | |
* component, rather than having to pass the image data down from pages. | |
* |