{items.map((item) => {
// AI suggestion based on current todos
const wishResult = wish({
query: item.title,
context: { item, items },
});
return (
{
const current = items.get();
const index = current.findIndex((el) =>
Cell.equals(item, el)
);
if (index >= 0) {
items.set(current.toSpliced(index, 1));
}
}}
>
×
AI Suggestion
{wishResult}
);
})}