import { Link } from 'react-router-dom' import { Pencil, Globe, Lock, GitBranch, FileText } from 'lucide-react' import type { TreeListItem } from '@/types' import { TagBadges } from '@/components/common/TagBadges' import { AddToFolderMenu } from './AddToFolderMenu' import { cn } from '@/lib/utils' import { usePermissions } from '@/hooks/usePermissions' interface TreeListViewProps { trees: TreeListItem[] onStartSession: (treeId: string) => void onTagClick: (tag: string) => void onFolderCreated: (parentId?: string | null) => void onDeleteTree: (tree: TreeListItem) => void onForkTree?: (treeId: string) => void } export function TreeListView({ trees, onStartSession, onTagClick, onFolderCreated, onForkTree, }: TreeListViewProps) { const { canEditTree } = usePermissions() return (
{tree.description || 'No description available'}