workflow preview

This commit is contained in:
zxhlyh
2025-05-14 18:02:22 +08:00
parent 958ff44707
commit 53018289d4
17 changed files with 1189 additions and 0 deletions

View File

@ -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 (