| 1 | /** |
| 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | * |
| 4 | * This source code is licensed under the MIT license found in the |
| 5 | * LICENSE file in the root directory of this source tree. |
| 6 | */ |
| 7 | |
| 8 | import '../styles/globals.css'; |
| 9 | |
| 10 | export default function RootLayout({ |
| 11 | children, |
| 12 | }: { |
| 13 | children: React.ReactNode; |
| 14 | }): JSX.Element { |
| 15 | 'use no memo'; |
| 16 | return ( |
| 17 | <html lang="en"> |
| 18 | <head> |
| 19 | <title> |
| 20 | {process.env.NODE_ENV === 'development' |
| 21 | ? '[DEV] React Compiler Playground' |
| 22 | : 'React Compiler Playground'} |
| 23 | </title> |
| 24 | <meta |
| 25 | name="viewport" |
| 26 | content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"></meta> |
| 27 | <link rel="icon" href="/favicon.ico" /> |
| 28 | <link rel="manifest" href="/site.webmanifest" /> |
| 29 | <link |
| 30 | rel="preload" |
| 31 | href="/fonts/Source-Code-Pro-Regular.woff2" |
| 32 | as="font" |
| 33 | type="font/woff2" |
| 34 | crossOrigin="anonymous" |
| 35 | /> |
| 36 | <link |
| 37 | rel="preload" |
| 38 | href="/fonts/Optimistic_Display_W_Lt.woff2" |
| 39 | as="font" |
| 40 | type="font/woff2" |
| 41 | crossOrigin="anonymous" |
| 42 | /> |
| 43 | </head> |
| 44 | <body className="font-sans h-screen overflow-y-hidden">{children}</body> |
| 45 | </html> |
| 46 | ); |
| 47 | } |