How can i update components props reactjs

i have a product component that has an id, image, price, props like that
i want to change them with an if state like if image is blue change the image prop to blue image and change id to blue products id how can i do that.

Are the props being passed by a parent component? Your question is well detailed.
Maybe you could show what the component looks like.