Epilepsy and Genetics

How do someone’s genes contribute to the development of epilepsy? We now recognize several types of epilepsy that have a clear genetic component.