'use client' import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle, } from '@/components/ui/dialog' import { Button } from '@/components/ui/button' import { Loader2 } from 'lucide-react' import { formatCost } from '@/lib/format' interface AnalyzeConfirmDialogProps { open: boolean onOpenChange: (open: boolean) => void onConfirm: () => void loading: boolean estimate: { sessionCount: number messageCount: number estimatedCostUSD: number } | null } export function AnalyzeConfirmDialog({ open, onOpenChange, onConfirm, loading, estimate, }: AnalyzeConfirmDialogProps) { return ( Run AI Analysis {estimate ? (
Sessions {estimate.sessionCount}
User messages {estimate.messageCount}
Model gpt-4.1-mini
Estimated cost {formatCost(estimate.estimatedCostUSD)}

Each user message will be classified by type, role, skill level, and sentiment. Results are cached — you won't be charged again for the same session.

) : (
)}
) }