// @flow import React from 'react'; import Button from 'component/button'; import NavigationHistoryItem from 'component/navigationHistoryItem'; type HistoryItem = { uri: string, lastViewed: number, }; type Props = { history: Array, }; export default function NavigationHistoryRecent(props: Props) { const { history = [] } = props; return history.length ? (
{history.map(({ lastViewed, uri }) => ( ))}
) : null; }