import { useTranslation } from '@/hooks/useTranslation'; import { PlanDetails } from '../utils/plan'; interface PlanActionButtonProps { plan: PlanDetails; isUserPlan: boolean; comingSoon?: boolean; upgradable?: boolean; onSubscribe: (priceId?: string) => void; onSelectPlan: (index: number) => void; } const PlanActionButton: React.FC = ({ plan, isUserPlan, comingSoon, upgradable, onSubscribe, onSelectPlan, }) => { const _ = useTranslation(); if (upgradable && plan.plan !== 'free' && !isUserPlan) { if (comingSoon) { return ( ); } return ( ); } if (plan.plan === 'free' && isUserPlan) { return ( ); } if (isUserPlan) { return ( ); } return null; }; export default PlanActionButton;