Files
portabase/app/layout.tsx
T

43 lines
1.0 KiB
TypeScript
Raw Normal View History

2026-02-26 15:29:00 +01:00
import type { Metadata } from "next";
import type React from "react";
2024-11-03 11:30:44 +01:00
import "./globals.css";
2026-05-24 17:09:12 +02:00
import { ConsoleSilencer } from "@/components/common/console-silencer";
2026-02-26 15:29:00 +01:00
import { author, geistMono, poppins } from "@/fonts/fonts";
import { cn } from "@/lib/utils";
import { Providers } from "./providers";
2024-11-03 11:30:44 +01:00
const title = process.env.PROJECT_NAME ?? "Portabase";
2025-11-04 08:48:46 +01:00
2024-11-03 11:30:44 +01:00
export const metadata: Metadata = {
2026-02-26 15:29:00 +01:00
title: {
default: title,
template: `%s - ${title}`,
},
description: process.env.PROJECT_DESCRIPTION ?? undefined,
2024-11-03 11:30:44 +01:00
};
2025-12-22 20:32:18 +01:00
export default async function RootLayout({
2026-02-26 15:29:00 +01:00
children,
}: Readonly<{
children: React.ReactNode;
2024-11-03 11:30:44 +01:00
}>) {
2026-02-26 15:29:00 +01:00
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>
);
2024-11-03 11:30:44 +01:00
}