{state.isEditing ? (
Editing
) : (
{state.card.title}
{/* Explicit computed() wrapping a button with inline handler */}
{/* The Cell ref in the handler must be captured in the derive */}
{computed(() => (
state.isEditing.set(true)}>Edit
))}
)}
),
card: state.card,
};
});