MCPcopy Create free account
hub / github.com/codeaashu/claude-code / useWizard

Function useWizard

src/components/wizard/useWizard.ts:5–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { WizardContext } from './WizardProvider.js'
4
5export function useWizard<
6 T extends Record<string, unknown> = Record<string, unknown>,
7>(): WizardContextValue<T> {
8 const context = useContext(WizardContext) as WizardContextValue<T> | null
9 if (!context) {
10 throw new Error('useWizard must be used within a WizardProvider')
11 }
12 return context
13}
14

Callers 13

WizardDialogLayoutFunction · 0.85
ConfirmStepWrapperFunction · 0.85
ModelStepFunction · 0.85
ToolsStepFunction · 0.85
MethodStepFunction · 0.85
PromptStepFunction · 0.85
DescriptionStepFunction · 0.85
LocationStepFunction · 0.85
ConfirmStepFunction · 0.85
MemoryStepFunction · 0.85
ColorStepFunction · 0.85
GenerateStepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected