import React from "react";
import Navbar from '../components/navbar';
import { graphql } from "gatsby";
import { MDXRenderer } from 'gatsby-plugin-mdx';
export default ({
data
}) => {
let {
frontmatter,
body
} = data.mdx;
return <>
{frontmatter.title}
{body}
>;
};
export const query = graphql`
query NotesIndexQuery($id: String!) {
mdx(id: {eq: $id}) {
frontmatter {
title
}
tableOfContents
body
}
}`;