The code is very similar in both components, we could make the code reusable for both situations
The code is very similar in both components, we could make the code reusable for both situations