1import React from 'react';
2import cn from 'classnames';
4import Flex from './Flex';
6export default function IconButton({
22 'bg-black': solid && !disabled,
23 'bg-gray3': !solid || disabled,
27 black: !solid && !disabled,
28 gray4: !solid && disabled,
37 // TODO: ^ replace with 1:1 svgs and remove explicit sizing
39 pointerEvents: 'none',
40 cursor: 'not-allowed',
43 onClick={onClick ? () => !disabled && onClick() : undefined}
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