import React from 'react' import { useRouteData } from 'react-static-pro-max' import { Link } from 'react-router-dom' import { Post } from '../../types' export default () => { const { posts }: { posts: Post[] } = useRouteData() return (