Default

Function: default()

function default(props): Promise<Element | null>

Defined in: app/commissiestrijd/layout.tsx:15

Root layout for the Commissiestrijd section of the application. This layout checks if the user is authenticated before rendering the children components.

Parameters

props

Readonly<{ children: React.ReactNode; }>

The props for the layout component.

Returns

Promise<Element | null>
  • Returns the children if the user is authenticated, otherwise redirects to the login page.

On this page