Adding content pages [wip]

This commit is contained in:
Tom Moor
2018-12-20 07:19:05 -08:00
parent 3a9a5f5ed3
commit 6ebb652481
31 changed files with 322 additions and 19 deletions

View File

@ -0,0 +1,24 @@
// @flow
import { map, groupBy } from 'lodash';
import * as React from 'react';
export default function IntegrationMenu({ integrations }) {
const categories = groupBy(integrations, i => i.category);
return (
<nav>
{map(categories, (integrations, category) => (
<React.Fragment>
<h3>{category}</h3>
<ul>
{integrations.map(i => (
<li>
<a href={`/integrations/${i.slug}`}>{i.name}</a>
</li>
))}
</ul>
</React.Fragment>
))}
</nav>
);
}