There may be a chance for revision of the implant. The doctor may be able to just remove and replace the damaged implant. Bone grafting may be required to replace bone lost to infection.
Imaging studies will be done to see how much damage there is and what kind of condition the rest of the bone is in. Another option is ankle fusion. Bone chips harvested from your pelvis are placed around the joint. Bone will grow in and around the fresh bone. You'll lose motion in the joint but gain stability.
As fast as the technology is changing, there may be more options a few years down the road. The doctor will advise you in which option today will preserve or salvage the joint and possibly allow you to take advantage of future developments.