1import React from 'react';
2import cn from 'classnames';
4import Grid from './Grid';
5import Flex from './Flex';
6import { HelpText } from './Typography';
8export default function Button({
19 black: !solid && !disabled,
20 gray4: !solid && disabled,
27 'pointer p4 truncate flex-row justify-between',
29 'bg-black bg-gray6-hover': solid && !disabled,
30 'bg-gray3': solid && disabled,
31 'bg-transparent bg-gray1-hover': !solid && !disabled,
32 'bg-transparent': !solid && disabled,
38 pointerEvents: 'none',
39 cursor: 'not-allowed',
43 <Grid.Item as={Flex} justify="between" full>
44 <span className={cn(textColor)}>{children}</span>
45 <div className={cn('pl4', textColor)}>{icon}</div>
48 <Grid.Item as={HelpText} full>
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