page.tsx — ui Source File
Architecture documentation for page.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR f79ea58e_2e0d_6340_e417_5412247fc56a["page.tsx"] 68b933cf_7ffc_0fbc_a41d_80f8f6fa24c1["blocks"] f79ea58e_2e0d_6340_e417_5412247fc56a --> 68b933cf_7ffc_0fbc_a41d_80f8f6fa24c1 674c271b_4f42_1739_f1f5_3d3fcc5d6d05["block-display"] f79ea58e_2e0d_6340_e417_5412247fc56a --> 674c271b_4f42_1739_f1f5_3d3fcc5d6d05 3d43044d_d1e0_5292_34f2_f76f2ab62f7c["registry-categories"] f79ea58e_2e0d_6340_e417_5412247fc56a --> 3d43044d_d1e0_5292_34f2_f76f2ab62f7c style f79ea58e_2e0d_6340_e417_5412247fc56a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { getAllBlockIds } from "@/lib/blocks"
import { BlockDisplay } from "@/components/block-display"
import { registryCategories } from "@/registry/registry-categories"
export const dynamicParams = false
export async function generateStaticParams() {
return registryCategories.map((category) => ({
categories: [category.slug],
}))
}
export default async function BlocksPage({
params,
}: {
params: { categories?: string[] }
}) {
const blocks = await getAllBlockIds(
["registry:block"],
params.categories ?? []
)
return blocks.map((name) => (
<div
key={name}
className="border-grid container border-b py-8 first:pt-6 last:border-b-0 md:py-12"
>
<BlockDisplay name={name} />
</div>
))
}
Domain
Subdomains
Functions
Dependencies
- block-display
- blocks
- registry-categories
Source
Frequently Asked Questions
What does page.tsx do?
page.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, Styles subdomain.
What functions are defined in page.tsx?
page.tsx defines 2 function(s): BlocksPage, generateStaticParams.
What does page.tsx depend on?
page.tsx imports 3 module(s): block-display, blocks, registry-categories.
Where is page.tsx in the architecture?
page.tsx is located at deprecated/www/app/(app)/blocks/[...categories]/page.tsx (domain: ComponentRegistry, subdomain: Styles, directory: deprecated/www/app/(app)/blocks/[...categories]).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free