-
Notifications
You must be signed in to change notification settings - Fork 126
Expand file tree
/
Copy pathlayout.tsx
More file actions
50 lines (45 loc) · 1.17 KB
/
layout.tsx
File metadata and controls
50 lines (45 loc) · 1.17 KB
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
49
50
import type { Metadata } from "next";
import { Inter, Instrument_Serif, Roboto } from "next/font/google";
import { Providers } from "@/components/providers/Providers";
import { meta } from "@/lib/constants";
import Script from "next/script";
import { cn } from "@/lib/utils";
import "./globals.css";
const inter = Inter({
variable: "--font-inter",
subsets: ["latin"],
weight: "300"
});
const instrumentSerif = Instrument_Serif({
variable: "--font-instrument-serif",
subsets: ["latin"],
weight: "400"
});
export const metadata: Metadata = {
title: meta.title,
description: meta.description
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en" suppressHydrationWarning className="dark">
<head>
<Script
id="razorpay-checkout"
src="https://checkout.razorpay.com/v1/checkout.js"
strategy="beforeInteractive"
/>
</head>
<body className={cn("antialiased", inter.variable, instrumentSerif.variable)}>
<Providers>
<main className="relative">
{children}
</main>
</Providers>
</body>
</html>
);
}