import { Modal } from '@/components/common/Modal' import { ArrowRight, GitBranch, AlertTriangle, HelpCircle, Zap, CheckCircle } from 'lucide-react' import { cn } from '@/lib/utils' import type { NodeType } from '@/types/tree' export interface DescendantNode { id: string label: string type: NodeType parentOptionLabel: string } interface ContinuationModalProps { isOpen: boolean onClose: () => void descendantNodes: DescendantNode[] onSelectNode: (nodeId: string) => void onBuildCustomBranch: () => void } const nodeTypeIcons: Record = { decision: , action: , solution: , answer: } const nodeTypeLabels: Record = { decision: 'Decision', action: 'Action', solution: 'Solution', answer: 'Answer' } export function ContinuationModal({ isOpen, onClose, descendantNodes, onSelectNode, onBuildCustomBranch }: ContinuationModalProps) { const hasDescendants = descendantNodes.length > 0 return (
{/* Descendant Selection */} {hasDescendants && (

Select the next step in your troubleshooting path:

{descendantNodes.map(node => ( ))}
)} {/* Divider */} {hasDescendants && (
Or
)} {/* Build Custom Branch */}
{/* Warning */}

You'll need to complete this branch manually or mark the issue as resolved. Custom branches can be saved as a personal tree when your session ends.

) }