added api to get address

This commit is contained in:
PxlLoewe
2025-03-24 11:22:12 -07:00
parent 740560fba6
commit c956fb253b
3 changed files with 53 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ import type { Metadata } from "next";
import Navbar from "./_components/navbar/Navbar";
import { redirect } from "next/navigation";
import { getServerSession } from "../api/auth/[...nextauth]/auth";
import { Toaster } from "react-hot-toast";
export const metadata: Metadata = {
title: "VAR Leitstelle v2",
@@ -19,6 +20,21 @@ export default async function RootLayout({
}
return (
<>
<Toaster
containerStyle={{
top: 150,
left: 20,
right: 20,
}}
toastOptions={{
style: {
background: "var(--color-base-100)",
color: "var(--color-base-content)",
},
}}
position="top-left"
reverseOrder={false}
/>
<Navbar />
{children}
</>