import { ChevronDownIcon } from 'lucide-react'; import { Button, Dropdown, MenuItem } from '@vertesia/ui/core'; import type { OpenDocument } from './types/document.js'; interface DocumentTabBarProps { documents: OpenDocument[]; activeId: string | null; onSelect: (id: string) => void; } export function DocumentTabBar({ documents, activeId, onSelect }: DocumentTabBarProps) { if (documents.length === 0) return null; return (
} > {documents.map((doc) => ( onSelect(doc.id)} className={doc.id === activeId ? 'font-medium' : ''} > {doc.title} ))}
); }