mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
43 lines
1.0 KiB
TypeScript
43 lines
1.0 KiB
TypeScript
import type { Metadata } from "next";
|
|
import type React from "react";
|
|
import "./globals.css";
|
|
import { ConsoleSilencer } from "@/components/wrappers/common/console-silencer";
|
|
import { author, geistMono, poppins } from "@/fonts/fonts";
|
|
import { cn } from "@/lib/utils";
|
|
import { Providers } from "./providers";
|
|
|
|
const title = process.env.PROJECT_NAME ?? "App Title";
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
default: title,
|
|
template: `%s - ${title}`,
|
|
},
|
|
description: process.env.PROJECT_DESCRIPTION ?? undefined,
|
|
};
|
|
|
|
export default async function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<head>
|
|
<meta name="apple-mobile-web-app-title" content={title} />
|
|
</head>
|
|
<body
|
|
className={cn(
|
|
poppins.variable,
|
|
author.variable,
|
|
geistMono.variable,
|
|
"font-sans h-full",
|
|
)}
|
|
>
|
|
<ConsoleSilencer />
|
|
<Providers>{children}</Providers>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|