import React from "react" import { graphql, Link as GatsbyLink, PageProps } from "gatsby" import { MDXRenderer } from "gatsby-plugin-mdx" import NavigateNextIcon from "@mui/icons-material/NavigateNext" import Layout from "../../components/organisms/Layout" import { defineCustomElements as deckDeckGoHighlightElement } from "@deckdeckgo/highlight-code/dist/loader"; import { Breadcrumbs, Link } from "@mui/material"; deckDeckGoHighlightElement(); const BlogPost = ({ data: { mdx }, path }: PageProps) => { return ( } aria-label="breadcrumb" > Blog {mdx?.frontmatter?.title} {mdx?.frontmatter?.title ?? ""} } > {mdx?.body ?? ""} ) } export const query = graphql` query BlogPost($id: String) { mdx(fields: { source: { eq: "posts" } }, id: { eq: $id }) { id body frontmatter { title published updated } } } ` export default BlogPost