MCPcopy Create free account
hub / github.com/dailydotdev/apps / getLayout

Function getLayout

packages/webapp/components/layouts/NoSidebarLayout.tsx:8–22  ·  view source on GitHub ↗
(
  page: ReactNode,
  pageProps: Record<string, unknown>,
  layoutProps: MainLayoutProps,
)

Source from the content-addressed store, hash-verified

6import { getLayout as getMainLayout } from './MainLayout';
7
8export const getLayout = (
9 page: ReactNode,
10 pageProps: Record<string, unknown>,
11 layoutProps: MainLayoutProps,
12): ReactNode =>
13 getMainLayout(
14 <NoSidebarLayout hideBackButton={layoutProps?.hideBackButton}>
15 {page}
16 </NoSidebarLayout>,
17 pageProps,
18 {
19 ...layoutProps,
20 showSidebar: false,
21 },
22 );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected