Default

Function: default()

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

Defined in: app/commissiestrijd/Admin/layout.tsx:13

Root layout for the admin section of the application. This layout checks if the user is an admin 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 an admin, otherwise redirects to the home page.

On this page