const get = require('lodash.get'); const InnerHTML = require('dangerously-set-inner-html'); const React = require('react'); const styles = require('./style.css'); const titleCase = require('title-case'); const Docs = require('../../../src/docs'); module.exports = ({ params }) => { const path = (params.parent !== 'undefined') ? `${titleCase(params.parent)}.${titleCase(params.name)}` : `${titleCase(params.name)}`; const body = get(Docs, path); const item = body ? ( ) : (

{path} Not Found

); return (
{item}
); };