21 lines
499 B
TypeScript
21 lines
499 B
TypeScript
import * as React from 'react';
|
|
import { graphql, useStaticQuery } from 'gatsby';
|
|
import Img from 'gatsby-image';
|
|
|
|
export default function Logo(props) {
|
|
const data = useStaticQuery(graphql`
|
|
query {
|
|
file(relativePath: { eq: "logo.png" }) {
|
|
childImageSharp {
|
|
fixed(height: 36, quality: 100) {
|
|
...GatsbyImageSharpFixed
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`);
|
|
return (
|
|
<Img fixed={data.file.childImageSharp.fixed} alt="USACO Guide" {...props} />
|
|
);
|
|
}
|