Home / File/ page.tsx — ui Source File

page.tsx — ui Source File

Architecture documentation for page.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.

File tsx DocumentationAtlas ContentSourcing 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  1fb6ae46_e55f_43b3_33e5_c5a19967a631["page.tsx"]
  9c1a1e1b_87f8_29d5_c12d_e83869cf94e4["next"]
  1fb6ae46_e55f_43b3_33e5_c5a19967a631 --> 9c1a1e1b_87f8_29d5_c12d_e83869cf94e4
  21e41673_6adc_dc40_151c_93e557507255["component-registry"]
  1fb6ae46_e55f_43b3_33e5_c5a19967a631 --> 21e41673_6adc_dc40_151c_93e557507255
  b0da794a_70d9_29df_5632_d7a842c1a3bf["component-wrapper"]
  1fb6ae46_e55f_43b3_33e5_c5a19967a631 --> b0da794a_70d9_29df_5632_d7a842c1a3bf
  style 1fb6ae46_e55f_43b3_33e5_c5a19967a631 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { type Metadata } from "next"

import { componentRegistry } from "@/app/(internal)/sink/component-registry"
import { ComponentWrapper } from "@/app/(internal)/sink/components/component-wrapper"

export const dynamic = "force-static"
export const revalidate = false

export const metadata: Metadata = {
  title: "Kitchen Sink",
  description: "A page with all components for testing purposes.",
}

export default function SinkPage() {
  return (
    <div className="@container grid flex-1 gap-4 p-4">
      {Object.entries(componentRegistry)
        .filter(([, component]) => {
          return component.type === "registry:ui"
        })
        .map(([key, component]) => {
          const Component = component.component
          return (
            <ComponentWrapper
              key={key}
              name={key}
              className={component.className || ""}
            >
              <Component />
            </ComponentWrapper>
          )
        })}
    </div>
  )
}

Subdomains

Functions

Dependencies

  • component-registry
  • component-wrapper
  • next

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 DocumentationAtlas domain, ContentSourcing subdomain.
What functions are defined in page.tsx?
page.tsx defines 1 function(s): SinkPage.
What does page.tsx depend on?
page.tsx imports 3 module(s): component-registry, component-wrapper, next.
Where is page.tsx in the architecture?
page.tsx is located at apps/v4/app/(internal)/sink/page.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/app/(internal)/sink).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free