64 lines
1.8 KiB
TypeScript
64 lines
1.8 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Suspense } from "react";
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
import { ogDefault } from "@/lib/og";
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
import { SiteFooter } from "@/components/site-footer";
|
|
import { TextSelectionToolbar } from "@/components/text-selection-toolbar";
|
|
import { TextHighlighter } from "@/components/text-highlighter";
|
|
import { AudioPlayerProvider, FloatingPlayer } from "@/components/audio-player";
|
|
import "./globals.css";
|
|
|
|
const geistSans = Geist({
|
|
variable: "--font-sans",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
const geistMono = Geist_Mono({
|
|
variable: "--font-geist-mono",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Prabhupāda Says",
|
|
description:
|
|
"Browse the books and teachings of His Divine Grace A.C. Bhaktivedanta Swami Prabhupāda",
|
|
...ogDefault(),
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html
|
|
lang="en"
|
|
suppressHydrationWarning
|
|
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
|
|
>
|
|
<body className="min-h-full flex flex-col">
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
<AudioPlayerProvider>
|
|
<TooltipProvider>
|
|
{children}
|
|
<TextSelectionToolbar />
|
|
<Suspense fallback={null}>
|
|
<TextHighlighter />
|
|
</Suspense>
|
|
<FloatingPlayer />
|
|
<SiteFooter />
|
|
</TooltipProvider>
|
|
</AudioPlayerProvider>
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|