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

Function DiffModeProvider

app/src/components/diffModeContext.tsx:17–24  ·  view source on GitHub ↗
(props: { children: JSX.Element })

Source from the content-addressed store, hash-verified

15const DiffModeContext = createContext<Signal<Mode>>()
16
17export function DiffModeProvider(props: { children: JSX.Element }) {
18 return (
19 // eslint-disable-next-line solid/reactivity
20 <DiffModeContext.Provider value={createSignal<Mode>('pretty')}>
21 {props.children}
22 </DiffModeContext.Provider>
23 )
24}
25
26export function useDiffModeContext() {
27 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected