how to replace broken toilet handle

It was obvious that this toilet lever is broken, as the handle isn’t connected to anything internally.