All checks were successful
Container-Image bauen und veröffentlichen / build-and-push (push) Successful in 5m15s
18 lines
424 B
TypeScript
18 lines
424 B
TypeScript
import type { Metadata } from "next"
|
|
import { redirect } from "next/navigation"
|
|
import { getAdminSession } from "@/lib/require-admin"
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Admin",
|
|
description: "Datenschutzerklärungen verwalten",
|
|
}
|
|
|
|
export default async function AdminLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
if (!(await getAdminSession())) redirect("/auth/signin")
|
|
return <>{children}</>
|
|
}
|