BlockViewerFileTree() — ui Function Reference
Architecture documentation for the BlockViewerFileTree() function in block-viewer.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 0b693b37_f436_96ec_70cf_f2a31e37a0cb["BlockViewerFileTree()"] c3ac54aa_58a5_8188_b5f8_014a382dcef3["block-viewer.tsx"] 0b693b37_f436_96ec_70cf_f2a31e37a0cb -->|defined in| c3ac54aa_58a5_8188_b5f8_014a382dcef3 490f6bb9_b906_4b05_666d_dac1a32689b9["useBlockViewer()"] 0b693b37_f436_96ec_70cf_f2a31e37a0cb -->|calls| 490f6bb9_b906_4b05_666d_dac1a32689b9 style 0b693b37_f436_96ec_70cf_f2a31e37a0cb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/components/block-viewer.tsx lines 371–396
export function BlockViewerFileTree() {
const { tree } = useBlockViewer()
if (!tree) {
return null
}
return (
<SidebarProvider className="flex !min-h-full flex-col border-r">
<Sidebar collapsible="none" className="w-full flex-1">
<SidebarGroupLabel className="h-12 rounded-none border-b px-4 text-sm">
Files
</SidebarGroupLabel>
<SidebarGroup className="p-0">
<SidebarGroupContent>
<SidebarMenu className="translate-x-0 gap-1.5">
{tree.map((file, index) => (
<Tree key={index} item={file} index={1} />
))}
</SidebarMenu>
</SidebarGroupContent>
</SidebarGroup>
</Sidebar>
</SidebarProvider>
)
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does BlockViewerFileTree() do?
BlockViewerFileTree() is a function in the ui codebase, defined in apps/v4/components/block-viewer.tsx.
Where is BlockViewerFileTree() defined?
BlockViewerFileTree() is defined in apps/v4/components/block-viewer.tsx at line 371.
What does BlockViewerFileTree() call?
BlockViewerFileTree() calls 1 function(s): useBlockViewer.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free