import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, } from "@/components/ui/dialog"; import { Label } from "@/components/ui/label"; import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"; import { client } from "@/lib/auth-client"; import { cn } from "@/lib/utils"; import { ArrowUpFromLine, CreditCard, RefreshCcw } from "lucide-react"; import { useId, useState } from "react"; import { toast } from "sonner"; function Component(props: { currentPlan?: string; isTrial?: boolean }) { const [selectedPlan, setSelectedPlan] = useState("plus"); const id = useId(); return (
{!props.currentPlan ? "Upgrade" : "Change"} your plan Pick one of the following plans.
setSelectedPlan(value)} >

$20/month

$200/month

Contact our sales team

note: all upgrades takes effect immediately and you'll be charged the new amount on your next billing cycle.

{props.currentPlan && ( )}
); } export { Component };