konobangu/apps/web/app/layout.tsx

31 lines
801 B
TypeScript

import '@konobangu/design-system/styles/globals.css';
import './styles/web.css';
import { DesignSystemProvider } from '@konobangu/design-system';
import { fonts } from '@konobangu/design-system/lib/fonts';
import { cn } from '@konobangu/design-system/lib/utils';
import type { ReactNode } from 'react';
import { Footer } from './components/footer';
import { Header } from './components/header';
type RootLayoutProperties = {
readonly children: ReactNode;
};
const RootLayout = ({ children }: RootLayoutProperties) => (
<html
lang="en"
className={cn(fonts, 'scroll-smooth')}
suppressHydrationWarning
>
<body>
<DesignSystemProvider>
<Header />
{children}
<Footer />
</DesignSystemProvider>
</body>
</html>
);
export default RootLayout;