MCPcopy Create free account
hub / github.com/arctic-cli/interface / DiffComponentProvider

Function DiffComponentProvider

packages/ui/src/context/diff.tsx:5–7  ·  view source on GitHub ↗
(props: ParentProps<{ component: ValidComponent }>)

Source from the content-addressed store, hash-verified

3const DiffComponentContext = createContext<ValidComponent>()
4
5export function DiffComponentProvider(props: ParentProps<{ component: ValidComponent }>) {
6 return <DiffComponentContext.Provider value={props.component}>{props.children}</DiffComponentContext.Provider>
7}
8
9export function useDiffComponent() {
10 const component = useContext(DiffComponentContext)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected