// Langfuse Cloud only import { Button } from "@/src/components/ui/button"; import Link from "next/link"; import { useSupportDrawer } from "@/src/features/support-chat/SupportDrawerProvider"; import { StripeCustomerPortalButton } from "./StripeCustomerPortalButton"; import { BillingSwitchPlanDialog } from "./BillingSwitchPlanDialog"; import { useBillingInformation } from "./useBillingInformation"; import { StripeCancellationButton } from "./StripeCancellationButton"; export const BillingActionButtons = () => { const { organization } = useBillingInformation(); const { setOpen } = useSupportDrawer(); // Do not show checkout or customer portal if manual plan is set in cloud config if (organization?.cloudConfig?.plan) { return (
); } // Show pricing page button return (
{/* Always show – also for people who are currently on hobby plan */} {organization?.cloudConfig?.stripe?.activeSubscriptionId && ( <> )}
); };