Genetic Disorders: Islamic View

What’s the Islamic point of view on mental illnesses which are genetic and other genetic illnesses?