1import React from 'react'
2import { Button, Chevron } from '../components/Base'
4import { renderRoute } from '../lib/router'
5import { isLast } from '../lib/lib'
7const Crumbs = (props) => {
8 const { routeCrumbs, skipRoute } = props
9 const history = routeCrumbs.reverse()
11 // FIXME probably more straightforward to render them normally and just
12 // return the reversed array of renders
13 const rendered = history.map((route, idx) => {
16 <div className={'flex items-center'} key={ `history-${idx}` }>
24 key={ `history-button-${idx}` }
25 onClick={ () => skipRoute(history.size - idx - 1) }>
26 { renderRoute(props, route) }
30 isLast(history.size, idx)
32 : <Chevron className={'h-4 mh-2'} />
43const Header = (props) =>
44 <div className={'flex items-center h-10'}>
46 routeCrumbs={ props.routeCrumbs }
47 skipRoute={ props.skipRoute }
48 networkType={ props.networkType }
49 wallet={ props.wallet }
50 pointCursor={ props.pointCursor }
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list