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) { // plan not surfaced in copy right now — Pro users see the same dialog and // can upgrade their org if they're also capped. void plan; return ( You've hit your Opus limit Opus costs an arm and a leg, so we unfortunately have to cap you at {cap}{' '} {cap === 1 ? 'session' : 'sessions'} a day. Give Kimi, MiniMax, or GLM a spin — they are genuinely good and we use them all the time. HF Pro ($9/mo) — more Opus, more everything {PRO_CAP} Opus sessions/day here, 20× HF Inference credits, ZeroGPU access, and priority on Spaces hardware. ); }