mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
13 lines
252 B
TypeScript
13 lines
252 B
TypeScript
import { useState } from 'react'
|
|
import type { StartNodeType } from './types'
|
|
|
|
const useConfig = (initInputs: StartNodeType) => {
|
|
const [inputs, setInputs] = useState<StartNodeType>(initInputs)
|
|
|
|
return {
|
|
inputs,
|
|
}
|
|
}
|
|
|
|
export default useConfig
|