formated project with prettier

This commit is contained in:
PxlLoewe
2025-02-25 00:45:36 +01:00
parent c5b8a7c4cb
commit 22606b2137
95 changed files with 17771 additions and 17068 deletions

View File

@@ -1,27 +1,27 @@
import type { Metadata } from 'next';
import Navbar from './_components/Navbar';
import { useSession } from 'next-auth/react';
import { redirect } from 'next/navigation';
import { getServerSession } from '../api/auth/[...nextauth]/auth';
import type { Metadata } from "next";
import Navbar from "./_components/Navbar";
import { useSession } from "next-auth/react";
import { redirect } from "next/navigation";
import { getServerSession } from "../api/auth/[...nextauth]/auth";
export const metadata: Metadata = {
title: 'VAR Leitstelle v2',
description: 'Die neue VAR Leitstelle.',
title: "VAR Leitstelle v2",
description: "Die neue VAR Leitstelle.",
};
export default async function RootLayout({
children,
children,
}: Readonly<{
children: React.ReactNode;
children: React.ReactNode;
}>) {
const session = await getServerSession();
if (!session) {
redirect('/login');
}
return (
<>
<Navbar />
{children}
</>
);
const session = await getServerSession();
if (!session) {
redirect("/login");
}
return (
<>
<Navbar />
{children}
</>
);
}