{isEditing ? (
onUpdate(node.id, { title: e.target.value })}
onFocus={onInputFocus}
autoFocus
/>
) : (
onSetEditing(node.id)}
>
{node.title}
)}
{activeColorPickerId === node.id && (
e.stopPropagation()}>
{savedColors.map(color => (
)}
{showTypePicker && (
e.stopPropagation()}>
)}