I have this component which can add multiple cards with different input values. I have a delete button that deletes the newest card created. I want that delete button to be