1import React from 'react';
2import { CopyButton as BaseCopyButton } from 'components/Buttons';
3import useCopiable from 'lib/useCopiable';
4import WithTooltip, { TooltipPosition } from './WithTooltip';
6export function CopyButtonWide({ text, children, ...rest }) {
7 const [doCopy, didCopy] = useCopiable(text);
10 content={didCopy ? 'Copied!' : 'Copy'}
11 className={'rel full nowrap copy-button-wide'}
12 position={TooltipPosition.TopRight}>
13 <BaseCopyButton as="span" onClick={doCopy} text={text} {...rest}>
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