38 lines
770 B
TypeScript
38 lines
770 B
TypeScript
import type { Metadata } from "next";
|
|
import { Inter } from "next/font/google";
|
|
import "./globals.css";
|
|
import { Toaster } from "@/components/ui/toaster";
|
|
import Navbar from "@/components/Navbar";
|
|
import NavbarSm from "@/components/NavbarSm";
|
|
|
|
|
|
const inter = Inter({ subsets: ["latin"] });
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Create Next App",
|
|
description: "Generated by create next app",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
|
|
return (
|
|
<html lang="fa" dir="rtl">
|
|
<body className="font-[yekan-m] ">
|
|
<Navbar />
|
|
<NavbarSm />
|
|
|
|
<div className="flex justify-center" >
|
|
{children}
|
|
</div>
|
|
|
|
<Toaster />
|
|
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|