Files
parsshop/app/layout.tsx
haniyeroozmand 8b733c817c first commit
2026-03-21 18:58:07 +03:30

44 lines
852 B
TypeScript

import "./globals.css";
import { Header } from "@/components/header";
import Footer from "@/components/footer";
import localFont from 'next/font/local';
import { CartProvider } from "@/components/context/cartcontext";
const Yekanbakh = localFont({
src: [
{
path: '../public/src/font/YekanBakhFaNum-Regular.woff',
weight: '400',
style: 'normal',
},
{
path: '../public/src/font/YekanBakhFaNum-SemiBold.woff',
weight: '500',
style: 'normal',
},
],
variable: '--font-site',
display: 'swap',
})
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="fa" dir="rtl" className={Yekanbakh.variable}>
<body>
<CartProvider>
<Header/>
{children}
</CartProvider>
<Footer/>
</body>
</html>
)
}