import { createContext, useContext } from "react"; // The onboarding wizard's actions context + hook, split out of WizardProvider so that file exports // only components (Fast Refresh). export interface WizardActions { openWizard: () => void; closeWizard: () => void; } // Only the actions are shared — the open flag stays local to the provider (it renders the wizard // itself), so no consumer needs to subscribe to it. export const WizardActionsContext = createContext({ openWizard: () => {}, closeWizard: () => {}, }); export function useWizard(): WizardActions { return useContext(WizardActionsContext); }