|
1
|
import HeroPricing from "../../components/Pricing/HeroPricing" |
|
2
|
import { notFound } from "next/navigation" |
|
3
|
import FeatureSections from "../../components/Pricing/FeatureSections" |
|
4
|
import { H2, Hr } from "docs-ui" |
|
5
|
import { isPricingAvailable, loadPricingData } from "../../utils/pricing" |
|
6
|
|
|
7
|
export default async function PricingPage() { |
|
8
|
if (!isPricingAvailable()) { |
|
9
|
return ( |
|
10
|
<div>Pricing page is not available in the CI / Preview environment.</div> |
|
11
|
) |
|
12
|
} |
|
13
|
const data = await loadPricingData() |
|
14
|
|
|
15
|
if (!data) { |
|
16
|
return notFound() |
|
17
|
} |
|
18
|
|
|
19
|
return ( |
|
20
|
<div> |
|
21
|
<H2 id="cloud-plans">Cloud Plans</H2> |
|
22
|
<HeroPricing data={data.heroPricing} /> |
|
23
|
<Hr /> |
|
24
|
<H2 id="plans-features">Plans Features</H2> |
|
25
|
<FeatureSections |
|
26
|
featureSections={data.featureTable.featureSections} |
|
27
|
columnCount={data.featureTable.columnHeaders.length} |
|
28
|
columns={data.featureTable.columnHeaders} |
|
29
|
/> |
|
30
|
</div> |
|
31
|
) |
|
32
|
} |