import { graphql, StaticQuery } from "gatsby" import React from "react" import { Link } from "gatsby" import { node2slug } from "../utils" function ChildrenNodes({nodes, parent}) { const filtered = nodes.filter(it => { return it.frontmatter.parent === parent }) if (filtered.length < 1) return <> if (parent === null) { return <>{filtered.map(it => { return
  • {it.frontmatter.title}
  • })} } return
    {filtered.map(it => { return
  • {it.frontmatter.title}
  • })}
    } const Drawer = () => ( ) export default Drawer