I actually do endorse the way Bukele handled the gang problem, which was really a parallel state problem, which was really an act of war to invade and take over the country and its resources.
The first step was to get the country into debt to the IMF. Second, extract resources by stealing the wealth of its citizens. Third, recruit the impoverished citizens into gangs to build a shadow state and run the country using this indirect shadow dictatorship.
Since the root problem was caused by fiat-powered wealth extraction, the root solution is Bitcoin-powered wealth retention, and Bukele recognized that. Making Bitcoin legal tender was the key to winning the war by making his enemies powerless. Imprisoning gang members and restructuring the government is just taking out the trash.