qcast-front/src/app/layout.js
yoosangwook 9b1e3704a1 feat: sass 로더 추가
sass 로더 추가
전역으로 스타일 적용
2024-08-02 16:49:33 +09:00

32 lines
869 B
JavaScript

import { Inter } from 'next/font/google'
import './globals.css'
import '../styles/style.scss'
import Headers from '@/components/Headers'
import RecoilRootWrapper from './RecoilWrapper'
import UIProvider from './UIProvider'
import { headers } from 'next/headers'
const inter = Inter({ subsets: ['latin'] })
export const metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
}
export default function RootLayout({ children }) {
const headersList = headers()
const headerPathname = headersList.get('x-pathname') || ''
// console.log('headerPathname', headerPathname)
return (
<html lang="en">
<body className={inter.className}>
{headerPathname !== '/login' && <Headers />}
<RecoilRootWrapper>
<UIProvider>{children}</UIProvider>
</RecoilRootWrapper>
</body>
</html>
)
}