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.

666 B
Raw Blame
import type { PickerDocument } from '../../common/document-picker'
import type { ParentMode } from '@/models/datasets'
import { cn } from '@langgenius/dify-ui/cn'
import { DocumentPicker } from '../../common/document-picker'

type DocumentTitleProps = {
  datasetId: string
  document?: PickerDocument | null
  parentMode?: ParentMode
  wrapperCls?: string
}

export function DocumentTitle({ datasetId, document, parentMode, wrapperCls }: DocumentTitleProps) {
  return (
    <div className={cn('flex flex-1 items-center justify-start', wrapperCls)}>
      <DocumentPicker datasetId={datasetId} currentDocument={document} parentMode={parentMode} />
    </div>
  )
}