I have a custom hook for handling image inputs but I\'m trying to encapsulate it with useMemo but I don\'t know exactly how to do this.
useImage.js
imp