2026-11-15 21:00:50 +00:00
|
|
|
|
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-15 21:00:50 +00:00
|
|
|
|
|
2026-11-20 06:41:21 +00:00
|
|
|
|
import { PaymentReturn } from "@/components/PaymentReturn";
|
2026-11-15 21:00:50 +00:00
|
|
|
|
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>
|
|
|
|
|
|
)}
|
2026-11-15 21:00:50 +00:00
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|