import { Box, Button, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Typography, } from '@mui/material'; import type { PlanTier } from '@/hooks/useUserQuota'; const HF_PRICING_URL = 'https://huggingface.co/pricing'; const PRO_CAP = 20; interface ClaudeCapDialogProps { open: boolean; plan: PlanTier; cap: number; onClose: () => void; onUseFreeModel: () => void; onUpgrade: () => void; } export default function ClaudeCapDialog({ open, plan, cap, onClose, onUseFreeModel, onUpgrade, }: ClaudeCapDialogProps) { const isFreePlan = plan === 'free'; return ( You've hit your premium model limit Opus and GPT-5.5 are expensive to run, so we cap premium models at {cap}{' '} {cap === 1 ? 'session' : 'sessions'} a day. {isFreePlan ? 'HF Pro raises the daily premium-model limit.' : 'Your plan has used today’s premium-model allowance.'}{' '} Give Kimi, MiniMax, GLM, or DeepSeek a spin instead. {isFreePlan && ( HF Pro ($9/mo) — more premium model sessions {PRO_CAP} premium model sessions/day here, 20× HF Inference credits, ZeroGPU access, and priority on Spaces hardware. )} {isFreePlan && ( )} ); }