ai-chatbot/apps/editor/app/layout.tsx
2026-03-13 09:07:46 +01:00

55 lines
1.3 KiB
TypeScript

import type { Metadata } from 'next'
import { Barlow } from 'next/font/google'
import localFont from 'next/font/local'
import Script from 'next/script'
import './globals.css'
const geistSans = localFont({
src: './fonts/GeistVF.woff',
variable: '--font-geist-sans',
})
const geistMono = localFont({
src: './fonts/GeistMonoVF.woff',
variable: '--font-geist-mono',
})
const barlow = Barlow({
subsets: ['latin'],
weight: ['400', '500', '600', '700'],
variable: '--font-barlow',
display: 'swap',
})
export const metadata: Metadata = {
title: 'Pascal Editor',
description: 'Standalone building editor',
}
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode
}>) {
return (
<html className={`${geistSans.variable} ${geistMono.variable} ${barlow.variable}`} lang="en">
<head>
{process.env.NODE_ENV === 'development' && (
<>
<Script
crossOrigin="anonymous"
src="//unpkg.com/react-scan/dist/auto.global.js"
strategy="beforeInteractive"
/>
<Script
crossOrigin="anonymous"
src="//unpkg.com/react-grab/dist/index.global.js"
strategy="beforeInteractive"
/>
</>
)}
</head>
<body className="font-sans">{children}</body>
</html>
)
}