import type { Metadata, Viewport } from 'next'; import { Geist, Geist_Mono } from 'next/font/google'; import './globals.css'; import { SiteHeader } from '@/components/layout/site-header'; import { SiteFooter } from '@/components/layout/site-footer'; import { TabBar } from '@/components/layout/tab-bar'; import { THEME_SCRIPT } from '@/components/layout/theme-toggle'; const geistSans = Geist({ variable: '--font-geist-sans', subsets: ['latin'], display: 'swap' }); const geistMono = Geist_Mono({ variable: '--font-geist-mono', subsets: ['latin'], display: 'swap' }); const SITE_URL = process.env.NEXT_PUBLIC_SITE_URL ?? 'https://www.rareindex.io'; export const metadata: Metadata = { metadataBase: new URL(SITE_URL), title: { default: 'RareIndex — The Global Market for Collectibles', template: '%s · RareIndex' }, description: 'Discover, price, track and analyze collectible assets across the world’s marketplaces and auction houses.', applicationName: 'RareIndex', manifest: '/manifest.webmanifest', appleWebApp: { capable: true, statusBarStyle: 'default', title: 'RareIndex' }, formatDetection: { telephone: false }, openGraph: { type: 'website', siteName: 'RareIndex', url: SITE_URL, title: 'RareIndex — The Global Market for Collectibles', description: 'Prices, sales, listings, rarity, liquidity and indices for collectible assets.' }, twitter: { card: 'summary_large_image', title: 'RareIndex', description: 'The global market for collectibles.' }, robots: { index: true, follow: true }, }; export const viewport: Viewport = { width: 'device-width', initialScale: 1, viewportFit: 'cover', themeColor: [ { media: '(prefers-color-scheme: light)', color: '#f7f7f5' }, { media: '(prefers-color-scheme: dark)', color: '#0a0b0d' }, ], }; export default function RootLayout({ children }: { children: React.ReactNode }) { return (