1import React from 'react';
2import cn from 'classnames';
3import { Flex, Breadcrumb } from 'indigo-react';
5export default function Crumbs({ className, routes = [] }) {
6 const lastIndex = routes.length - 1;
7 const textStyle = 'gray4 mono';
9 <Flex className={className} row wrap>
10 {routes.map((route, i) => {
11 const disabled = !route.action;
14 <React.Fragment key={route.text}>
17 onClick={route.action}
19 className={cn(textStyle, { 'pointer underline': !disabled })}>
23 <Flex.Item as={Breadcrumb} className={cn(textStyle, 'mh2')}>
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