Default
Function: default()
function default(props): Promise<null | Element>
Defined in: src/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<null | Element>
- Returns the children if the user is an admin, otherwise redirects to the home page.