演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
666 B
TypeScript
20 lines
666 B
TypeScript
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>
|
|
)
|
|
}
|