If that wardrobe was MDF, it should probably go to the garbage.
If the wardrobe is wood, I would recommend letting it dry.
I understand the paint came off it, when the wood swelled.
In building boats, there's wood products that stay in tact for 100 years.
Okay, for this wardrobe, should it be wood, it would swell, and then as it dried, it would shrink again.
A few junctures might come undone, but a wood worker could put these back together.
Sand the furniture down.
Treat it with boiled linseed oil with turpentine (solution #2 here mentioned for in an earlier post I had another).
I am assuming the turpentine kills stuff off and the oil displaces the water in the wood - I think.
I wonder if the same type of oil could treat 2 x 4s.
Okay, then paint.