So I have a custom hook I created to manage array indexes which could be used to pass an array and keep track which index you are at in the array. The custom hook is using local