MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / useKeymapType

Function useKeymapType

packages/web/src/hooks/useKeymapType.ts:6–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { useLocalStorage } from "usehooks-ts";
5
6export const useKeymapType = (): [KeymapType, (keymapType: KeymapType) => void] => {
7 const [keymapType, setKeymapType] = useLocalStorage<KeymapType>("keymapType", "default", { initializeWithValue: false });
8 return [ keymapType, setKeymapType ];
9}

Callers 3

GeneralPageFunction · 0.90
useKeymapExtensionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected