Fix lightbox spinner (#6561)
* refactor imageitem useanimatedreaction logic
* revert copy/paste fix
* revert last commit
* Fix conditions
---------
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
authored by