:recycle: use hook instead of inline component
:recycle: use hook instead of inline component

this also gets rid of the console error "Cannot update a component from inside the function body of a different component"

teamleadercrm/teamleader-ui