MCPcopy Index your code
hub / github.com/vercel/examples / getLayout

Function getLayout

internal/packages/ui/src/layout.tsx:11–13  ·  view source on GitHub ↗
(
  Component: any
)

Source from the content-addressed store, hash-verified

9const Noop = ({ children }: { children?: ReactNode }) => <>{children}</>
10
11export const getLayout = <LP extends {} = LayoutProps>(
12 Component: any
13): ComponentType<LP> => Component?.Layout || Noop
14
15export const Layout = ({ path, deployButton, children }: LayoutProps) => (
16 <div className="mx-auto h-screen flex flex-col">

Callers 15

AppFunction · 0.85
AppFunction · 0.85
AppFunction · 0.85
AppFunction · 0.85
AppFunction · 0.85
AppFunction · 0.85
AppFunction · 0.85
AppFunction · 0.85
AppFunction · 0.85
AppFunction · 0.85
AppFunction · 0.85
AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected