import React from 'react' import { withRouteData, Link } from 'react-static' import { Post } from '../types' interface Props { posts: Post[] } export default withRouteData(({ posts }: Props) => (