feat: lift country/vatId state to CheckoutContent

This commit is contained in:
Usman Baig
2026-03-27 11:34:29 +01:00
parent 5ca24f6c9c
commit 0fcc4866fb

View File

@@ -170,6 +170,8 @@ function CheckoutContent() {
const planId = plan!
const billingInterval = interval as 'month' | 'year'
const pageviewLimit = Number(limit)
const [country, setCountry] = useState('')
const [vatId, setVatId] = useState('')
return (
<div className="flex h-screen overflow-hidden">
@@ -208,6 +210,10 @@ function CheckoutContent() {
plan={planId}
interval={billingInterval}
limit={pageviewLimit}
country={country}
vatId={vatId}
onCountryChange={setCountry}
onVatIdChange={setVatId}
/>
{/* Payment form */}
@@ -215,6 +221,8 @@ function CheckoutContent() {
plan={planId}
interval={billingInterval}
limit={pageviewLimit}
country={country}
vatId={vatId}
/>
</motion.div>
</div>