1import create from 'zustand';
2import { HOUR } from 'lib/utils/roller';
4export interface TimerStore {
7 setNextBatchTime: (nextBatchTime: number) => void;
8 setNextRoll: (nextRoll: string) => void;
11export const useTimerStore = create<TimerStore>(set => ({
12 nextBatchTime: new Date().getTime() + HOUR,
13 nextRoll: '0h 00m 00s',
14 setNextBatchTime: (nextBatchTime: number) => set(() => ({ nextBatchTime })),
15 setNextRoll: (nextRoll: string) => set(() => ({ nextRoll })),
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