-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathimage.js
More file actions
27 lines (25 loc) · 900 Bytes
/
image.js
File metadata and controls
27 lines (25 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import React from "react"
import { StaticQuery, graphql } from "gatsby"
import { StaticImage } from "gatsby-plugin-image"
//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
* `StaticQuery`, which allows us to load the image from directly within this
* component, rather than having to pass the image data down from pages.
*
* For more information, see the docs:
* - `gatsby-image`: https://gatsby.dev/gatsby-image
* - `StaticQuery`: https://gatsby.dev/staticquery
*/
// const Image = () => (
// <StaticQuery
// query={graphql`
// query {
// placeholderImage: file(relativePath: { eq: "gatsby-icon.png" })
// }
// `}
// render={data => <Img fluid={data.placeholderImage} />}
// />
// )
// export default Image