
It will depend on the material under the paint. Any particulate board you will probably want to replace. Wood can be dried, sanded and repainted depending on the depth of the damage.
But you will need to check the state of the material under the paint to know for sure.
Edit: looking closer at the picture it looks like melamine maybe? If that is the case you should replace it if possible.



Not Matter but this one looks interesting : https://blog.prusa3d.com/a-cheap-smart-light-controller-thanks-to-3d-printing_136243/