Improved the responsiveness of the website
This commit is contained in:
16
src/components/PricingTable.tsx
Normal file
16
src/components/PricingTable.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
"use client";
|
||||
|
||||
import {Elements} from "@stripe/react-stripe-js";
|
||||
import {loadStripe} from "@stripe/stripe-js";
|
||||
|
||||
const stripePromise = loadStripe("pk_test_51NzD5xFI67mXFum2XDMXiLu89SbCAMY5O0RnKjlU6XqyfboRVvFHI3f5OJHaxsrjjB7WqDYqN7Y3eF8mq3sF354F00l30L5GuJ");
|
||||
|
||||
export default function PricingTable() {
|
||||
return (
|
||||
<Elements stripe={stripePromise}>
|
||||
<script async src="https://js.stripe.com/v3/pricing-table.js" />
|
||||
{/** @ts-ignore */}
|
||||
<stripe-pricing-table id="pricing" pricing-table-id={process.env.STRIPE_PRICING_TABLE} publishable-key={process.env.STRIPE_KEY} />
|
||||
</Elements>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user