- {Object.entries(result.input_todo.properties).map(([key, schema]: [key: string, schema: JsonSchemaProperty]) => {
- const value = inputValues[key] || ''
- const Icon = getIconForSchemaType(schema as JsonSchemaProperty)
-
- if (schema.enum) {
- return (
-
-
-
- {schema.title || key}
-
-
- {schema.enum.map((option) => (
-
-
setInputValues({ ...inputValues, [key]: option })}>
- {option}
-
-
- ))}
-
- {schema.description && (
-
{schema.description}
- )}
-