1import { Box, Icon, Text } from '@tlon/indigo-react';
2import useCopiable from '../../lib/useCopiable';
3import withFadeable from './withFadeable';
5interface MasterKeyCopyProps {
9const MasterKeyCopy = ({ text }: MasterKeyCopyProps) => {
10 const [doCopy, didCopy] = useCopiable(text);
11 const { color, label, icon } = didCopy
12 ? { color: 'rgb(70,156,106)', label: 'Copied', icon: 'Checkmark' }
13 : { color: 'rgb(89,167,248)', label: 'Copy', icon: 'Copy' };
16 <Box onClick={() => doCopy()}>
23 padding={'10px 15px'}>
24 <Icon color={color} icon={icon} size="18px" mx="2px" />
25 <Text color={color} fontSize={'18px'} mx="2px" fontFamily={'Inter'}>
33export default MasterKeyCopy;
35export const FadeableMasterKeyCopy = withFadeable(MasterKeyCopy);
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