aiostreams / packages /docs /src /app /layout.tsx
f4b404's picture
Upload folder using huggingface_hub
f55c62a verified
Raw
History Blame Contribute Delete
1.41 kB
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 id="plausible-init" strategy="afterInteractive">{`
window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)};
plausible.init=plausible.init||function(i){plausible.o=i||{}};
plausible.init();
`}</Script>
</>
)}
<Provider>{children}</Provider>
</body>
</html>
);
}