Spaces:
Running

File size: 1,572 Bytes
03608f2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import type { Metadata, Viewport } from "next";
import { Geist, Geist_Mono, Noto_Nastaliq_Urdu } from "next/font/google";

import { Providers } from "@/components/providers";
import { localeBootScript } from "@/lib/i18n/boot";

import "./globals.css";

const geistSans = Geist({ variable: "--font-geist-sans", subsets: ["latin"] });
const geistMono = Geist_Mono({ variable: "--font-geist-mono", subsets: ["latin"] });
// Urdu is set in Nastaliq, the script Pakistani readers expect (Naskh reads as Arabic).
const nastaliq = Noto_Nastaliq_Urdu({
  variable: "--font-nastaliq",
  subsets: ["arabic"],
  weight: ["400", "600", "700"],
  preload: false,
});

export const metadata: Metadata = {
  title: { default: "WorkPilot", template: "%s · WorkPilot" },
  description: "Safe AI operations for small businesses: an agent inbox, live runs and policies.",
};

export const viewport: Viewport = {
  themeColor: [
    { media: "(prefers-color-scheme: light)", color: "#fbfcfd" },
    { media: "(prefers-color-scheme: dark)", color: "#16181d" },
  ],
};

export default function RootLayout({ children }: LayoutProps<"/">) {
  return (
    <html

      lang="en"

      dir="ltr"

      suppressHydrationWarning

      className={`${geistSans.variable} ${geistMono.variable} ${nastaliq.variable} h-full antialiased`}

    >

      <head>

        <script dangerouslySetInnerHTML={{ __html: localeBootScript }} />

      </head>

      <body className="min-h-full">

        <Providers>{children}</Providers>

      </body>

    </html>
  );
}