layout.tsx — ui Source File
Architecture documentation for layout.tsx, a tsx file in the ui codebase. 8 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR a4cae50b_f57e_6d2a_b6bd_6709db7519d7["layout.tsx"] 85256a8d_6bc0_0b85_aeec_351b43eef6a7["google"] a4cae50b_f57e_6d2a_b6bd_6709db7519d7 --> 85256a8d_6bc0_0b85_aeec_351b43eef6a7 79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"] a4cae50b_f57e_6d2a_b6bd_6709db7519d7 --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81 683e59cc_aef3_6181_1192_a4dcb3faf152["mode-switcher"] a4cae50b_f57e_6d2a_b6bd_6709db7519d7 --> 683e59cc_aef3_6181_1192_a4dcb3faf152 b2c60dee_4ede_8485_a6b4_91c999cdc69f["separator"] a4cae50b_f57e_6d2a_b6bd_6709db7519d7 --> b2c60dee_4ede_8485_a6b4_91c999cdc69f 12632a83_ef01_5f03_4110_ed33d49893b7["sidebar"] a4cae50b_f57e_6d2a_b6bd_6709db7519d7 --> 12632a83_ef01_5f03_4110_ed33d49893b7 e6ced48b_386a_d6b5_2696_a703c7da33ec["app-breadcrumbs"] a4cae50b_f57e_6d2a_b6bd_6709db7519d7 --> e6ced48b_386a_d6b5_2696_a703c7da33ec a182e5b2_6d93_11ff_d528_96461f5c81a2["app-sidebar"] a4cae50b_f57e_6d2a_b6bd_6709db7519d7 --> a182e5b2_6d93_11ff_d528_96461f5c81a2 33572e17_7105_9cc5_98ac_d288bd4fc4e4["theme-selector"] a4cae50b_f57e_6d2a_b6bd_6709db7519d7 --> 33572e17_7105_9cc5_98ac_d288bd4fc4e4 style a4cae50b_f57e_6d2a_b6bd_6709db7519d7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Figtree, Inter, Noto_Sans, Nunito_Sans } from "next/font/google"
import { cn } from "@/lib/utils"
import { ModeSwitcher } from "@/components/mode-switcher"
import { Separator } from "@/registry/new-york-v4/ui/separator"
import {
SidebarInset,
SidebarProvider,
SidebarTrigger,
} from "@/registry/new-york-v4/ui/sidebar"
import { AppBreadcrumbs } from "@/app/(internal)/sink/components/app-breadcrumbs"
import { AppSidebar } from "@/app/(internal)/sink/components/app-sidebar"
import { ThemeSelector } from "@/app/(internal)/sink/components/theme-selector"
const inter = Inter({
subsets: ["latin"],
variable: "--font-inter",
})
const notoSans = Noto_Sans({
subsets: ["latin"],
variable: "--font-noto-sans",
})
const nunitoSans = Nunito_Sans({
subsets: ["latin"],
variable: "--font-nunito-sans",
})
const figtree = Figtree({
subsets: ["latin"],
variable: "--font-figtree",
})
export default async function SinkLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<SidebarProvider
defaultOpen={true}
className={cn(
"theme-container",
inter.variable,
notoSans.variable,
nunitoSans.variable,
figtree.variable
)}
>
<AppSidebar />
<SidebarInset>
<header className="bg-background sticky top-0 z-10 flex h-14 items-center border-b p-4">
<SidebarTrigger />
<Separator orientation="vertical" className="mr-4 ml-2 !h-4" />
<AppBreadcrumbs />
<div className="ml-auto flex items-center gap-2">
<ModeSwitcher />
<ThemeSelector />
</div>
</header>
{children}
</SidebarInset>
</SidebarProvider>
)
}
Domain
Subdomains
Functions
Dependencies
- app-breadcrumbs
- app-sidebar
- mode-switcher
- separator
- sidebar
- theme-selector
- utils
Source
Frequently Asked Questions
What does layout.tsx do?
layout.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in layout.tsx?
layout.tsx defines 1 function(s): SinkLayout.
What does layout.tsx depend on?
layout.tsx imports 8 module(s): app-breadcrumbs, app-sidebar, google, mode-switcher, separator, sidebar, theme-selector, utils.
Where is layout.tsx in the architecture?
layout.tsx is located at apps/v4/app/(internal)/sink/layout.tsx (domain: DocumentationAtlas, subdomain: Changelog, 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