useBlockViewer() — ui Function Reference
Architecture documentation for the useBlockViewer() function in block-viewer.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 83e47c77_6e8f_02ce_db45_c9629b80fe41["useBlockViewer()"] 1286b7b7_c8bd_53b6_a231_a71e5b6ebd50["block-viewer.tsx"] 83e47c77_6e8f_02ce_db45_c9629b80fe41 -->|defined in| 1286b7b7_c8bd_53b6_a231_a71e5b6ebd50 480c80bb_0d8b_8c44_ac09_536e6e296e13["BlockViewerToolbar()"] 480c80bb_0d8b_8c44_ac09_536e6e296e13 -->|calls| 83e47c77_6e8f_02ce_db45_c9629b80fe41 7bf89f94_0718_8652_b74c_e5ee95228cf0["BlockViewerView()"] 7bf89f94_0718_8652_b74c_e5ee95228cf0 -->|calls| 83e47c77_6e8f_02ce_db45_c9629b80fe41 71cdc71b_b86c_adff_df8d_588d48c0e8f9["BlockViewerCode()"] 71cdc71b_b86c_adff_df8d_588d48c0e8f9 -->|calls| 83e47c77_6e8f_02ce_db45_c9629b80fe41 7b6f056c_f5ca_8e03_e453_02ed4f8baac9["BlockViewerFileTree()"] 7b6f056c_f5ca_8e03_e453_02ed4f8baac9 -->|calls| 83e47c77_6e8f_02ce_db45_c9629b80fe41 788315da_c0e7_9188_e48c_3358167fe2df["Tree()"] 788315da_c0e7_9188_e48c_3358167fe2df -->|calls| 83e47c77_6e8f_02ce_db45_c9629b80fe41 c88a05c5_1645_7551_a3ec_d08595d213a9["BlockCopyCodeButton()"] c88a05c5_1645_7551_a3ec_d08595d213a9 -->|calls| 83e47c77_6e8f_02ce_db45_c9629b80fe41 style 83e47c77_6e8f_02ce_db45_c9629b80fe41 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/components/block-viewer.tsx lines 75–81
function useBlockViewer() {
const context = React.useContext(BlockViewerContext)
if (!context) {
throw new Error("useBlockViewer must be used within a BlockViewerProvider.")
}
return context
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does useBlockViewer() do?
useBlockViewer() is a function in the ui codebase, defined in deprecated/www/components/block-viewer.tsx.
Where is useBlockViewer() defined?
useBlockViewer() is defined in deprecated/www/components/block-viewer.tsx at line 75.
What calls useBlockViewer()?
useBlockViewer() is called by 6 function(s): BlockCopyCodeButton, BlockViewerCode, BlockViewerFileTree, BlockViewerToolbar, BlockViewerView, Tree.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free