// @flow import * as React from 'react'; import format from 'date-fns/format'; import styled from 'styled-components'; import Grid from 'styled-components-grid'; import ReactMarkdown from 'react-markdown'; import { Helmet } from 'react-helmet'; import Header from './components/Header'; import { color } from '../../shared/styles/constants'; type Release = { id: string, name: string, body: string, created_at: string, }; function Changelog({ releases }: { releases: Release[] }) { return ( Changelog

Changelog

We’re building in public. Here’s what we’ve been changing recently.

{releases.map(release => (

{release.name}

))}
); } const Time = styled.time` color: ${color.slateDark}; margin-top: -16px; display: block; `; const Container = styled.div` width: 100%; max-width: 720px; margin: 0 auto; padding: 0 2em; `; const Article = styled.div` border-bottom: 1px solid ${color.slateLight}; padding-bottom: 2em; &:last-child { border-bottom: 0; } `; export default Changelog;