mirror of
https://github.com/fullstack-cash/fullstack-gatsby-theme-bch-wallet.git
synced 2026-09-21 16:52:06 -07:00
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
import React from 'react'
|
|
// import { useStaticQuery, graphql } from 'gatsby'
|
|
// import Img from 'gatsby-image'
|
|
import { StaticImage } from 'gatsby-plugin-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.
|
|
*
|
|
* For more information, see the docs:
|
|
* - `gatsby-image`: https://gatsby.dev/gatsby-image
|
|
* - `useStaticQuery`: https://www.gatsbyjs.org/docs/use-static-query/
|
|
*/
|
|
|
|
const Image = () => {
|
|
/* const data = useStaticQuery(graphql`
|
|
query {
|
|
placeholderImage: file(relativePath: { eq: "gatsby-astronaut.png" }) {
|
|
childImageSharp {
|
|
fixed {
|
|
...GatsbyImageSharpFixed
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`) */
|
|
return (
|
|
<>
|
|
<StaticImage
|
|
src='../images/gatsby-astronaut.png'
|
|
alt='please include an alt'
|
|
/>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default Image
|