David Prince
fix: add all missing local module stubs (remote_mcp_registry, mcp_auth, mcp_transport, etc)
cce8120 | import React from 'react'; | |
| function TodoList({ todos, onToggle, onDelete }) { | |
| return ( | |
| <ul> | |
| {todos.map(todo => ( | |
| <li key={todo.id} style={{ textDecoration: todo.completed ? 'line-through' : 'none' }}> | |
| <input | |
| type="checkbox" | |
| checked={todo.completed} | |
| onChange={() => onToggle(todo.id, !todo.completed)} | |
| /> | |
| {todo.title} | |
| <button onClick={() => onDelete(todo.id)} style={{ marginLeft: '1rem' }}> | |
| Delete | |
| </button> | |
| </li> | |
| ))} | |
| </ul> | |
| ); | |
| } | |
| export default TodoList; | |