-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathlayout.tsx
More file actions
76 lines (72 loc) · 2.12 KB
/
Copy pathlayout.tsx
File metadata and controls
76 lines (72 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import type { Metadata } from 'next';
import { Nunito_Sans as nunitoSans } from 'next/font/google';
import {
globalSearchMetaKeys,
globalSearchAgnostic,
globalSearchImportance,
} from '@repo/ui';
import { cn } from '@repo/utils';
import { GoogleAnalytics } from '@next/third-parties/google';
import { Providers } from './providers';
import '@docsearch/css';
import './globals.css';
import '@repo/ui/styles.css';
const fontSans = nunitoSans({
subsets: ['latin'],
display: 'swap',
adjustFontFallback: false,
variable: '--font-sans',
});
export const metadata: Metadata = {
metadataBase: new URL('https://storybook.js.org'),
title: 'Storybook: Frontend workshop for UI development',
description:
"Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and documentation. It's open source and free.",
icons: {
icon: {
url: '/icon.svg',
type: 'image/svg+xml',
sizes: 'any',
},
},
openGraph: {
url: 'https://storybook.js.org',
siteName: 'Storybook',
type: 'website',
title: 'Storybook: Frontend workshop for UI development',
description:
"Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and documentation. It's open source and free.",
},
other: {
// Set the docsearch index facets defaults
[globalSearchMetaKeys.version]: globalSearchAgnostic,
[globalSearchMetaKeys.importance]: globalSearchImportance.agnostic,
},
alternates: {
types: {
'text/plain': '/llms.txt',
},
},
verification: {
google: 'HCBwa2qa52ztaOfGjt3FQGzTUCM3kT8IOjTSY6diI88',
},
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en" suppressHydrationWarning>
<body
className={cn(
'min-h-screen bg-white font-sans antialiased dark:bg-slate-950',
fontSans.variable,
)}
>
<Providers>{children}</Providers>
</body>
<GoogleAnalytics gaId="G-MN8NJ34M7T" />
</html>
);
}