import { createContext } from 'react';

import type { WalkthroughControlsState } from '../../hooks/code-walkthrough/use-code-walkthrough-controls';

export const CodeWalkthroughControlsStateContext = createContext<WalkthroughControlsState>({
  activeFilters: [],

  getControlState: () => null,
  changeControlState: () => {},

  getFileText: () => '',
  areConditionsMet: () => false,
  handleDownloadCode: () => Promise.resolve(),
  populateInputsWithValue: (node) => node,
});
