Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

972 B
Raw Blame
import type { HumanInputFilledFormData } from '@/types/workflow'
import ContentWrapper from '@/app/components/base/chat/chat/answer/human-input-content/content-wrapper'
import { SubmittedHumanInputContent } from '@/app/components/base/chat/chat/answer/human-input-content/submitted'

type HumanInputFilledFormListProps = {
  humanInputFilledFormDataList: HumanInputFilledFormData[]
}

const HumanInputFilledFormList = ({
  humanInputFilledFormDataList,
}: HumanInputFilledFormListProps) => {
  return (
    <div className="mt-3 flex flex-col gap-y-3 first:mt-0">
      {humanInputFilledFormDataList.map((formData) => (
        <ContentWrapper
          key={formData.form_id}
          nodeTitle={formData.node_title}
          showExpandIcon
          className="bg-components-panel-bg"
          expanded
        >
          <SubmittedHumanInputContent formData={formData} />
        </ContentWrapper>
      ))}
    </div>
  )
}

export default HumanInputFilledFormList