2025-04-22 16:46:33 +08:00
|
|
|
import type { FC } from 'react'
|
|
|
|
import { memo } from 'react'
|
|
|
|
import type { DataSourceNodeType } from './types'
|
|
|
|
import type { NodePanelProps } from '@/app/components/workflow/types'
|
2025-04-29 16:11:54 +08:00
|
|
|
import VariableOrConstantInputField from '@/app/components/base/form/components/field/variable-or-constant-input'
|
2025-04-30 16:54:36 +08:00
|
|
|
import VariableSelector from '@/app/components/base/form/components/field/variable-selector'
|
2025-04-22 16:46:33 +08:00
|
|
|
|
|
|
|
const Panel: FC<NodePanelProps<DataSourceNodeType>> = () => {
|
|
|
|
return (
|
|
|
|
<div className='mb-2 mt-2 space-y-4 px-4'>
|
|
|
|
datasource
|
2025-04-30 16:54:36 +08:00
|
|
|
<div className='space-y-1'>
|
|
|
|
<VariableSelector
|
|
|
|
className='py-1'
|
|
|
|
label='Child delimiter'
|
|
|
|
labelOptions={{
|
|
|
|
isRequired: true,
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
<VariableOrConstantInputField
|
|
|
|
className='py-1'
|
|
|
|
label='Parent maximum chunk length'
|
|
|
|
/>
|
|
|
|
</div>
|
2025-04-22 16:46:33 +08:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default memo(Panel)
|