import React, { useState } from 'react'; import { Layers, X, Code, KeyRound } from 'lucide-react'; export default function SelectionModal({ selectionPrompt, onSelect, onConfirm, onCancel }) { const [inputValues, setInputValues] = useState({}); const type = selectionPrompt.type || 'selection'; const missingKeys = selectionPrompt.missingKeys || []; const allFilled = missingKeys.every(k => inputValues[k]?.trim()); return (
This step requires real IDs that could not be determined automatically. Enter the correct values from your system or database.
Select one to save as {selectionPrompt.fieldName}.
Raw response
{(() => { try { return JSON.stringify(JSON.parse(selectionPrompt.responseBody), null, 2); } catch { return selectionPrompt.responseBody; } })()}