mirror of
https://github.com/NVIDIA/dgx-spark-playbooks.git
synced 2026-04-23 02:23:53 +00:00
58 lines
2.3 KiB
TypeScript
58 lines
2.3 KiB
TypeScript
import { AlertCircle, Upload, Database, Table } from "lucide-react"
|
|
import { UploadDocuments } from "@/components/upload-documents"
|
|
import { S3UploadContainer } from "@/components/s3-upload-container"
|
|
import { DatabaseConnection } from "@/components/database-connection"
|
|
import { DocumentsTable } from "@/components/documents-table"
|
|
|
|
interface UploadTabProps {
|
|
onTabChange: (tab: string) => void
|
|
}
|
|
|
|
export function UploadTab({ onTabChange }: UploadTabProps) {
|
|
return (
|
|
<div className="flex flex-col lg:flex-row gap-8 lg:gap-12">
|
|
<div className="w-full lg:w-1/3 space-y-8">
|
|
<div className="nvidia-build-card">
|
|
<div className="flex items-center gap-3 mb-6">
|
|
<div className="w-8 h-8 rounded-lg bg-nvidia-green/15 flex items-center justify-center">
|
|
<Upload className="h-4 w-4 text-nvidia-green" />
|
|
</div>
|
|
<h2 className="text-lg font-semibold text-foreground">Upload Documents</h2>
|
|
</div>
|
|
<UploadDocuments />
|
|
|
|
<S3UploadContainer />
|
|
</div>
|
|
|
|
<div className="nvidia-build-card">
|
|
<div className="flex items-center gap-3 mb-6">
|
|
<div className="w-8 h-8 rounded-lg bg-nvidia-green/15 flex items-center justify-center">
|
|
<Database className="h-4 w-4 text-nvidia-green" />
|
|
</div>
|
|
<h2 className="text-lg font-semibold text-foreground">Storage Connections</h2>
|
|
</div>
|
|
<div className="space-y-6">
|
|
<DatabaseConnection />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div className="w-full lg:w-2/3">
|
|
<div className="nvidia-build-card p-0 overflow-hidden">
|
|
<div className="p-6 border-b border-border/10">
|
|
<div className="flex items-center gap-3 mb-3">
|
|
<div className="w-8 h-8 rounded-lg bg-nvidia-green/15 flex items-center justify-center">
|
|
<Table className="h-4 w-4 text-nvidia-green" />
|
|
</div>
|
|
<h2 className="text-lg font-semibold text-foreground">Documents Overview</h2>
|
|
</div>
|
|
<p className="text-sm text-muted-foreground leading-relaxed">
|
|
Upload and manage your documents for knowledge graph extraction
|
|
</p>
|
|
</div>
|
|
<DocumentsTable onTabChange={onTabChange} />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|