Files
portabase/app/layout.tsx
T

39 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-11-10 23:12:38 +01:00
import React from "react";
2025-07-17 09:28:57 +02:00
import type {Metadata} from "next";
2024-11-03 11:30:44 +01:00
import "./globals.css";
2025-07-17 09:28:57 +02:00
import {Providers} from "./providers";
import {cn} from "@/lib/utils";
2025-09-23 19:50:33 +02:00
import {ConsoleSilencer} from "@/components/wrappers/common/console-silencer";
2026-02-10 15:29:20 +01:00
import {author, geistMono, poppins} from "@/fonts/fonts";
2024-11-03 11:30:44 +01:00
2025-11-04 08:48:46 +01:00
const title = process.env.PROJECT_NAME ?? "App Title";
2024-11-03 11:30:44 +01:00
export const metadata: Metadata = {
2025-11-04 08:48:46 +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({
children,
}: Readonly<{
2024-11-03 15:29:30 +01:00
children: React.ReactNode;
2024-11-03 11:30:44 +01:00
}>) {
2025-12-22 20:32:18 +01:00
2024-11-03 15:29:30 +01:00
return (
2025-01-01 20:00:11 +01:00
<html lang="en" suppressHydrationWarning>
2025-07-17 09:28:57 +02:00
<head>
2025-12-22 20:32:18 +01:00
<meta name="apple-mobile-web-app-title" content={title}/>
2025-07-17 09:28:57 +02:00
</head>
2026-02-10 15:29:20 +01:00
<body className={cn(poppins.variable, author.variable, geistMono.variable, "font-sans h-full")}>
2025-09-23 19:50:33 +02:00
<ConsoleSilencer/>
2025-12-23 09:06:06 +01:00
<Providers>
{children}
</Providers>
2025-07-17 09:28:57 +02:00
</body>
2024-11-03 15:29:30 +01:00
</html>
);
2024-11-03 11:30:44 +01:00
}