"use client"; import { IconLoader2 } from "@tabler/icons-react"; import type { FileTreeNode } from "@/lib/types/backend"; type RenderSessionOrLoadStateInput = { isSessionFailed: boolean; sessionError: string | null | undefined; loadState: string; isLoadingTree: boolean; tree: FileTreeNode | null; loadError: string | null; onRetry: () => void; }; export function renderSessionOrLoadState({ isSessionFailed, sessionError, loadState, isLoadingTree, tree, loadError, onRetry, }: RenderSessionOrLoadStateInput) { if (isSessionFailed) { return (