MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / useDiffModeContext

Function useDiffModeContext

app/src/components/diffModeContext.tsx:26–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26export function useDiffModeContext() {
27 return (
28 useContext(DiffModeContext) ??
29 throwExp('useDiffModeContext: cannot find a DiffModeContext')
30 )
31}
32
33export const DiffModeToggleGroup: VoidComponent = () => {
34 const [diffMode, setDiffMode] = useDiffModeContext()

Callers 2

DiffHtmlFunction · 0.90
DiffModeToggleGroupFunction · 0.85

Calls 1

throwExpFunction · 0.90

Tested by

no test coverage detected