x-render / packages /x-flow /src /models /context.ts
AbdulElahGwaith's picture
Upload folder using huggingface_hub
c9d0005 verified
Raw
History Blame Contribute Delete
347 Bytes
import { createContext } from 'react';
import { FlowProps } from '../types';
import { FlowStore } from './store';
type Config = FlowProps & Record<string,any>
export const ConfigContext = createContext(null);
const StoreContext = createContext<FlowStore | null>(null);
export const Provider = StoreContext.Provider;
export default StoreContext;