Created
December 30, 2020 11:07
-
-
Save tobob/cf6cafff3954f1da44b711f1a66a4a2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { graphql } from "gatsby"; | |
import Gist from "super-react-gist"; | |
const CodeComponent = ({ url }) => <Gist url={url} />; | |
export default CodeComponent; | |
export const modelName = "ContentfulCodeComponent"; | |
export const query = graphql` | |
fragment CodeComponentFragment on ContentfulCodeComponent { | |
url | |
__typename | |
} | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment