import { Separator } from "@/components/ui/separator"; import { Table, TableBody, TableCell, TableRow } from "@/components/ui/table"; import Link from "next/link"; import { PlusIcon, Pencil1Icon } from "@radix-ui/react-icons"; interface Row { link: string; text: string; addLink: string; changeLink: string; } interface SectionProps { title: string; description: string; rows: Row[]; } const Section: React.FC = ({ title, description, rows }) => (

{title}

{description}

{rows.map((row, index) => ( {row.text} {row.addLink && ( Add )} {row.changeLink && ( Change )} ))}
); export default function Page() { const sections = [ { title: "Data", description: "List, add, and change data sources.", rows: [ { link: "/admin/data", text: "Data sources", addLink: "/admin/data/add", changeLink: "/admin/data", }, ], }, { title: "Vector store and embeddings", description: "List, add, and change vector store collections and embeddings.", rows: [ { link: "/admin/collections", text: "Collections", addLink: "/admin/data/add", changeLink: "/admin/collections", }, ], }, { title: "Chat history", description: "Manage chat history.", rows: [ // { // link: '/admin/users', // text: 'Users', // addLink: '/admin/users/add', // changeLink: '/admin/users', // }, { link: "/admin/chat-history", text: "Chat history", changeLink: "/admin/chat-history", }, ], }, // { // title: 'UI settings', // description: 'Configure what is shown in the UI to end users', // rows: [ // { // link: '/admin/ui-settings', // text: 'UI settings', // addLink: '/admin/ui-settings/add', // changeLink: '/admin/ui-settings', // }, // ], // }, ]; return (

Manage your RAG Apps

{sections.map((section, index) => (
))}
); }