mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 17:25:59 +02:00
27 lines
595 B
TypeScript
27 lines
595 B
TypeScript
import { graphql } from "gatsby"
|
|
import React, { Fragment } from "react"
|
|
import { MarkdownRemark } from "../../generated/graphql"
|
|
import { Markdown } from "../components/Markdown"
|
|
import { SEO } from "../components/SEO"
|
|
|
|
function RulesPage({ data }: ComponentQuery<{ md: MarkdownRemark }>) {
|
|
const { md } = data
|
|
|
|
return (
|
|
<Fragment>
|
|
<SEO title="Rules" />
|
|
<Markdown content={md.html!} />
|
|
</Fragment>
|
|
)
|
|
}
|
|
|
|
export const query = graphql`
|
|
query RulesPage {
|
|
md: markdownRemark(frontmatter: { path: { eq: "/rules" } }) {
|
|
html
|
|
}
|
|
}
|
|
`
|
|
|
|
export default RulesPage
|