BlockPage() — ui Function Reference
Architecture documentation for the BlockPage() function in page.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD bf757867_49d3_e310_205d_0084aeeee6c2["BlockPage()"] 3a58ab06_5d4b_5607_01b6_9b055f101a35["page.tsx"] bf757867_49d3_e310_205d_0084aeeee6c2 -->|defined in| 3a58ab06_5d4b_5607_01b6_9b055f101a35 504112e1_150b_4350_5c52_ab0165dc0bd6["getCacheRegistryItem()"] bf757867_49d3_e310_205d_0084aeeee6c2 -->|calls| 504112e1_150b_4350_5c52_ab0165dc0bd6 1e609419_0bd0_acd2_5987_f6f8348222fa["getCachedRegistryComponent()"] bf757867_49d3_e310_205d_0084aeeee6c2 -->|calls| 1e609419_0bd0_acd2_5987_f6f8348222fa style bf757867_49d3_e310_205d_0084aeeee6c2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/app/(create)/preview/[base]/[name]/page.tsx lines 107–143
export default async function BlockPage({
params,
}: {
params: Promise<{
base: string
name: string
}>
}) {
const paramBag = await params
const base = BASES.find((l) => l.name === paramBag.base)
if (!base) {
return notFound()
}
const [item, Component] = await Promise.all([
getCacheRegistryItem(paramBag.name, base.name),
getCachedRegistryComponent(paramBag.name, base.name),
])
if (!item || !Component) {
return notFound()
}
return (
<div className="relative">
<PreviewStyle />
<ItemPickerScript />
<RandomizeScript />
<DarkModeScript />
<DesignSystemProvider>
<Component />
</DesignSystemProvider>
<TailwindIndicator forceMount />
</div>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does BlockPage() do?
BlockPage() is a function in the ui codebase, defined in apps/v4/app/(create)/preview/[base]/[name]/page.tsx.
Where is BlockPage() defined?
BlockPage() is defined in apps/v4/app/(create)/preview/[base]/[name]/page.tsx at line 107.
What does BlockPage() call?
BlockPage() calls 2 function(s): getCacheRegistryItem, getCachedRegistryComponent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free