This repository has been archived on 2022-06-22. You can view files and clone it, but cannot push or open issues or pull requests.
usaco-guide/src/components/Logo.tsx
2020-07-19 22:17:30 -07:00

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} />
);
}