chore: notes add form content holder

This commit is contained in:
Joel
2025-08-07 17:56:37 +08:00
parent 465ff7838a
commit 6da1a48cad
5 changed files with 47 additions and 5 deletions

View File

@ -0,0 +1,17 @@
'use client'
import type { FC } from 'react'
import React from 'react'
type Props = {
}
const FormContent: FC<Props> = ({
}) => {
return (
<div>
aaaa
</div>
)
}
export default React.memo(FormContent)

View File

@ -17,6 +17,7 @@ import TimeoutInput from './components/timeout'
import useAvailableVarList from '@/app/components/workflow/nodes/_base/hooks/use-available-var-list'
import { VarType } from '@/app/components/workflow/types'
import type { Var } from '@/app/components/workflow/types'
import FormContent from './components/form-content'
const i18nPrefix = 'workflow.nodes.humanInput'
@ -53,6 +54,18 @@ const Panel: FC<NodePanelProps<HumanInputNodeType>> = ({
<div className='px-4 py-2'>
<Divider className='!my-0 !h-px !bg-divider-subtle' />
</div>
{/* form content */}
<div className='px-4 py-2'>
<div className='mb-1 flex items-center justify-between'>
<div className='flex items-center gap-0.5'>
<div className='system-sm-semibold-uppercase text-text-secondary'>{t(`${i18nPrefix}.formContent.title`)}</div>
<Tooltip
popupContent={t(`${i18nPrefix}.formContent.tooltip`)}
/>
</div>
</div>
<FormContent />
</div>
{/* user actions */}
<div className='px-4 py-2'>
<div className='mb-1 flex items-center justify-between'>