Files
sorsfonalak/services/frontend/src/app/layout.tsx
T

39 lines
1.1 KiB
TypeScript
Raw Normal View History

import type { Metadata } from "next";
import { Cormorant_Garamond, Inter } from "next/font/google";
2026-11-20 06:41:21 +00:00
import { Suspense } from "react";
2026-11-20 06:41:21 +00:00
import { PaymentReturn } from "@/components/PaymentReturn";
import { SiteHeader } from "@/components/SiteHeader";
import { getMe } from "@/lib/server";
import "./globals.css";
const cormorant = Cormorant_Garamond({
subsets: ["latin", "latin-ext"],
weight: ["500", "600"],
variable: "--font-cormorant",
});
const inter = Inter({ subsets: ["latin", "latin-ext"], variable: "--font-inter" });
export const metadata: Metadata = {
title: { default: "Sorsfonalak", template: "%s · Sorsfonalak" },
description: "Születési képlet, szinasztria és közösség – egy helyen.",
};
export default async function RootLayout({ children }: { children: React.ReactNode }) {
const me = await getMe();
return (
<html lang="hu" className={`${cormorant.variable} ${inter.variable}`}>
<body>
{me && <SiteHeader me={me} />}
{children}
2026-11-20 06:41:21 +00:00
{me && (
<Suspense fallback={null}>
<PaymentReturn />
</Suspense>
)}
</body>
</html>
);
}