22 lines
609 B
JavaScript
22 lines
609 B
JavaScript
|
import { Elements } from "@stripe/react-stripe-js";
|
||
|
import { loadStripe } from "@stripe/stripe-js";
|
||
|
import Head from "next/head";
|
||
|
import "tailwindcss/tailwind.css";
|
||
|
import "@fontsource/metropolis/all.css";
|
||
|
|
||
|
const stripePromise = loadStripe(process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY);
|
||
|
|
||
|
function MyApp({ Component, pageProps }) {
|
||
|
return (
|
||
|
<Elements stripe={stripePromise}>
|
||
|
<Head>
|
||
|
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||
|
<title key="title">Skynet</title>
|
||
|
</Head>
|
||
|
<Component {...pageProps} />
|
||
|
</Elements>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export default MyApp;
|