1import React from 'react';
2import cn from 'classnames';
4import Flex from './Flex';
6export default function IconButton({
29 'bg-black': solid && !secondary && !disabled,
30 'bg-gray3': (solid && disabled) || (solid && secondary),
31 'bg-gray2': !solid && secondary && disabled,
32 'bg-transparent': !solid,
36 black: !solid && !disabled,
37 gray4: !solid && disabled,
47 pointerEvents: 'none',
48 cursor: 'not-allowed',
51 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