56 lines
1.4 KiB
TypeScript
56 lines
1.4 KiB
TypeScript
import React from "react";
|
|
import type { Metadata } from "next";
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
import { Analytics } from "@vercel/analytics/next";
|
|
import "./globals.css";
|
|
import { Footer, Navbar } from "@/components/layout";
|
|
import { NextIntlClientProvider } from "next-intl";
|
|
import { getMessages } from "next-intl/server";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "FireForce - Emergency Services",
|
|
description:
|
|
"FireForce - Your trusted emergency response team bringing calm amidst chaos",
|
|
generator: "v0.app",
|
|
icons: {
|
|
icon: [
|
|
{
|
|
url: "/icon-light-32x32.png",
|
|
media: "(prefers-color-scheme: light)",
|
|
},
|
|
{
|
|
url: "/icon-dark-32x32.png",
|
|
media: "(prefers-color-scheme: dark)",
|
|
},
|
|
{
|
|
url: "/icon.svg",
|
|
type: "image/svg+xml",
|
|
},
|
|
],
|
|
apple: "/apple-icon.png",
|
|
},
|
|
};
|
|
|
|
export default async function RootLayout({
|
|
children,
|
|
params,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
params: any;
|
|
}>) {
|
|
const { locale } = await params;
|
|
const messages: any = await getMessages();
|
|
return (
|
|
<html lang={locale} suppressHydrationWarning>
|
|
<body className={`font-sans antialiased`}>
|
|
<NextIntlClientProvider messages={messages} locale={locale}>
|
|
<Navbar />
|
|
{children}
|
|
<Footer />
|
|
<Analytics />
|
|
</NextIntlClientProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|