Connect the favoriting icon to the backend. Clicking the icon should add the gift to the users favorite collection. Clicking again should remove the icon. Add logic in the frontend to change the icon's color if the users favorite collection is in the the gift collections. (So if gift.collections contains a collection with the same customer ID and the name "Favorites)
Connect the favoriting icon to the backend. Clicking the icon should add the gift to the users favorite collection. Clicking again should remove the icon. Add logic in the frontend to change the icon's color if the users favorite collection is in the the gift collections. (So if gift.collections contains a collection with the same customer ID and the name "Favorites)