This repository has been archived on 2023-11-06. You can view files and clone it, but cannot push or open issues or pull requests.
beatsaber-overlay/pages/_app.js
2022-10-20 16:13:45 +01:00

58 lines
1.2 KiB
JavaScript

import { createTheme, NextUIProvider } from "@nextui-org/react";
import { NextSeo } from "next-seo";
import { ThemeProvider as NextThemesProvider } from "next-themes";
import "../styles/globals.css";
const lightTheme = createTheme({
type: "light",
theme: {
colors: {},
},
});
const darkTheme = createTheme({
type: "dark",
theme: {
colors: {},
},
});
function MyApp({ Component, pageProps }) {
return (
<NextThemesProvider
storageKey="theme"
attribute="class"
value={{
dark: darkTheme,
light: lightTheme,
}}
>
<NextUIProvider>
<NextSeo
title={process.env.SITE_NAME}
description={process.env.SITE_DESCRIPTION}
openGraph={{
url: process.env.SITE_URL,
title: process.env.SITE_NAME,
description: process.env.SITE_DESCRIPTION,
site_name: process.env.SITE_NAME,
images: [
{
url: "https://cdn.fascinated.cc/fHknFPctAC.png?raw=true",
alt: "Site Example",
},
],
}}
twitter={{
cardType: "summary_large_image",
site: "@BeatSaber Overlay",
}}
/>
<Component {...pageProps} />
</NextUIProvider>
</NextThemesProvider>
);
}
export default MyApp;