1import React, { useEffect, useState } from 'react';
2import { Just } from 'folktale/maybe';
3import * as ob from 'urbit-ob';
5import MaybeSigil from './MaybeSigil';
7const selectColorway = (pass, fail, focused) => {
9 return ['#2AA779', '#FFFFFF'];
13 return ['#4330FC', '#FFFFFF'];
17 return ['#F8C134', '#FFFFFF'];
20 return ['#7F7F7F', '#FFFFFF'];
23export default function InputSigil({
32 const [lastValidPatp, setLastValidPatp] = useState(patp);
35 if (ob.isValidPatp(patp)) {
36 setLastValidPatp(patp);
42 patp={Just(lastValidPatp)}
44 colors={selectColorway(pass, error, focused)}
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