mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-17 23:13:51 +01:00
Beta channel updates
This commit is contained in:
12
src-web/hooks/useUpdateMode.ts
Normal file
12
src-web/hooks/useUpdateMode.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { NAMESPACE_APP } from '../lib/keyValueStore';
|
||||
import { useKeyValue } from './useKeyValue';
|
||||
|
||||
export function useUpdateMode() {
|
||||
const kv = useKeyValue<'stable' | 'beta'>({
|
||||
namespace: NAMESPACE_APP,
|
||||
key: 'update_mode',
|
||||
defaultValue: 'stable',
|
||||
});
|
||||
|
||||
return [kv.value, kv.set] as const;
|
||||
}
|
||||
Reference in New Issue
Block a user