import { ChevronRight, FolderOpen, StarIcon } from "lucide-react"; import type { BrowseTreeNode } from "../../browse-tree"; import { Badge } from "./ui/badge"; import { Button } from "./ui/button"; import { Card, CardContent } from "./ui/card"; export function BrowseOverview({ collections, favoriteCollections, onSelectCollection, onToggleFavoriteCollection, }: { collections: BrowseTreeNode[]; favoriteCollections: string[]; onSelectCollection: (collection: string) => void; onToggleFavoriteCollection: (collection: string) => void; }) { return (
{collections.map((collection) => (

{collection.name}

{collection.documentCount} indexed docs

{collection.children.length} folders {collection.directDocumentCount} root docs
))}
{collections.length === 0 && (

No collections yet

Add a collection to populate the workspace tree.

)}
); }