Spaces:
Paused
Paused
| import type { Metadata } from 'next'; | |
| import { Inter } from 'next/font/google'; | |
| import { Provider } from '@/components/provider'; | |
| import Script from 'next/script'; | |
| import './global.css'; | |
| export const metadata: Metadata = { | |
| title: { | |
| template: '%s | AIOStreams', | |
| default: 'AIOStreams', | |
| }, | |
| description: | |
| 'The all-in-one Stremio addon aggregator. Combine, filter, sort, and customise streams from every source.', | |
| icons: { | |
| icon: '/favicon.png', | |
| apple: '/logo.png', | |
| }, | |
| }; | |
| const inter = Inter({ | |
| subsets: ['latin'], | |
| }); | |
| export default function Layout({ children }: LayoutProps<'/'>) { | |
| const isProd = process.env.NODE_ENV === 'production'; | |
| return ( | |
| <html lang="en" className={inter.className} suppressHydrationWarning> | |
| <body className="flex flex-col min-h-screen"> | |
| {isProd && ( | |
| <> | |
| <Script | |
| src="https://plausible.viren070.me/js/pa-TiGGPZ3sO-A7zouJWYXD9.js" | |
| strategy="afterInteractive" | |
| /> | |
| </Script> | |
| </> | |
| )} | |
| <Provider>{children}</Provider> | |
| </body> | |
| </html> | |
| ); | |
| } | |