mirror of
https://github.com/langgenius/dify.git
synced 2026-04-30 23:48:04 +08:00
workflow preview
This commit is contained in:
@ -20,10 +20,12 @@ const NoteEditorContext = createContext<NoteEditorStore | null>(null)
|
||||
type NoteEditorContextProviderProps = {
|
||||
value: string
|
||||
children: React.JSX.Element | string | (React.JSX.Element | string)[]
|
||||
editable?: boolean
|
||||
}
|
||||
export const NoteEditorContextProvider = memo(({
|
||||
value,
|
||||
children,
|
||||
editable = true,
|
||||
}: NoteEditorContextProviderProps) => {
|
||||
const storeRef = useRef<NoteEditorStore | undefined>(undefined)
|
||||
|
||||
@ -50,6 +52,7 @@ export const NoteEditorContextProvider = memo(({
|
||||
throw error
|
||||
},
|
||||
theme,
|
||||
editable,
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user