"use client" import { useState } from "react" import { X, Zap } from "lucide-react" import { CheckoutButton } from "@/components/forms/checkout-button" interface UpgradeModalProps { trigger: React.ReactNode reason?: string } export function UpgradeModal({ trigger, reason }: UpgradeModalProps) { const [open, setOpen] = useState(false) return ( <>
setOpen(true)}>{trigger}
{open && (
setOpen(false)} />

Upgrade your plan

{reason ?? "You've reached the limit of your current plan. Upgrade to continue."}

Pro $29/mo

10 properties · Unlimited tenants · AI features

Lifetime $199 once

Unlimited everything · Forever

)} ) }