quivr/frontend/app/upload/page.tsx

29 lines
884 B
TypeScript
Raw Normal View History

"use client";
import Button from "@/lib/components/ui/Button";
import { Divider } from "@/lib/components/ui/Divider";
import PageHeading from "@/lib/components/ui/PageHeading";
import Link from "next/link";
import { Crawler } from "./components/Crawler";
import { FileUploader } from "./components/FileUploader";
2023-05-18 02:22:13 +03:00
export default function UploadPage() {
2023-05-23 11:06:58 +03:00
return (
<main className="pt-10">
<PageHeading
title="Upload Knowledge"
subtitle="Text, document, spreadsheet, presentation, audio, video, and URLs supported"
/>
<FileUploader />
<Divider text="or" className="m-5" />
<Crawler />
<div className="flex flex-col items-center justify-center gap-5 mt-5">
<Link href={"/chat"}>
<Button variant={"secondary"} className="py-3">
Chat
2023-05-23 11:06:58 +03:00
</Button>
</Link>
2023-05-23 11:06:58 +03:00
</div>
</main>
2023-05-23 11:06:58 +03:00
);
}