Spaces:
Runtime error
Runtime error
Adrien Denat
add loading icon + pending state when assistant message is pending (#48)
3aa8136
unverified
export function deepestChild(el: HTMLElement) { | |
let newEl = el; | |
while (newEl.hasChildNodes()) { | |
newEl = newEl.lastElementChild as HTMLElement; | |
} | |
return newEl; | |
} | |