lekol-plus/src/components/logo.jsx
2020-07-15 19:56:27 +02:00

26 lines
553 B
JavaScript

import React from "react"
import { useStaticQuery, graphql } from "gatsby"
import Img from "gatsby-image"
const Logo = () => {
const data = useStaticQuery(graphql`
query {
placeholderImage: file(relativePath: { eq: "lekol-plus-Logo.png" }) {
childImageSharp {
fluid(maxWidth: 300) {
...GatsbyImageSharpFluid
}
}
}
}
`)
return (
<Img
fluid={data.placeholderImage.childImageSharp.fluid}
style={{ height: "2rem", width: "2rem" }}
/>
)
}
export default Logo