add basic condfig and rendering
This commit is contained in:
12
src/lib/flowContext.tsx
Normal file
12
src/lib/flowContext.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import React from 'react'
|
||||
|
||||
export type FlowContextValue = {
|
||||
nodes: any[]
|
||||
setNodes: (updater: any) => void
|
||||
edges: any[]
|
||||
setEdges: (updater: any) => void
|
||||
}
|
||||
|
||||
const FlowContext = React.createContext<FlowContextValue | null>(null)
|
||||
|
||||
export default FlowContext
|
||||
Reference in New Issue
Block a user