// Langfuse Cloud only import { InfoIcon } from "lucide-react"; import { useBillingInformation } from "./useBillingInformation"; export const BillingScheduleNotification = () => { const { planLabel, cancellation, scheduledPlanSwitch } = useBillingInformation(); if (!scheduledPlanSwitch && !cancellation) { return null; } if (cancellation) { return (
{`Your organization cancelled the subscription. Features of the ${planLabel} plan will be available until ${cancellation.formatted}.`}
); } if (scheduledPlanSwitch) { return (
{`Your organization is scheduled to switch from ${planLabel} to ${scheduledPlanSwitch.newPlanLabel} on ${scheduledPlanSwitch.formatted}.`}
{scheduledPlanSwitch.message && (
{scheduledPlanSwitch.message}
)}
); } return null; };