-
Notifications
You must be signed in to change notification settings - Fork 170
Expand file tree
/
Copy pathProPlan.svelte
More file actions
37 lines (35 loc) · 1.15 KB
/
ProPlan.svelte
File metadata and controls
37 lines (35 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<script lang="ts">
import type {
V1BillingPlan,
V1Subscription,
} from "@rilldata/web-admin/client";
import ContactUs from "@rilldata/web-admin/features/billing/ContactUs.svelte";
import PlanQuotas from "@rilldata/web-admin/features/billing/plans/PlanQuotas.svelte";
import { getNextBillingCycleDate } from "@rilldata/web-admin/features/billing/plans/selectors";
import SettingsContainer from "@rilldata/web-admin/features/organizations/settings/SettingsContainer.svelte";
let {
organization,
subscription,
plan,
}: {
organization: string;
subscription: V1Subscription;
plan: V1BillingPlan;
} = $props();
</script>
<SettingsContainer title={plan?.displayName ?? "Pro Plan"}>
<div slot="body">
Next billing cycle will start on
<b>{getNextBillingCycleDate(subscription.currentBillingCycleEndDate)}</b>.
<a
href="https://www.rilldata.com/pricing"
target="_blank"
rel="noreferrer noopener">See pricing details -></a
>
<PlanQuotas {organization} />
</div>
<svelte:fragment slot="contact">
<span>For any questions,</span>
<ContactUs />
</svelte:fragment>
</SettingsContainer>