It's still used in some areas, pretty much every camper trailer's fridge. But it isn't like current refrigerants are not dangerous too. The building AC units are outside too.
All the RVs in my area use propane. But roof mounted commercial AC is still often ammonia based because people are rarely on the roof for a leak to be dangerous.
That was my understanding, had to double check after prev reply. Takes only a little heat to boil the ammonia so the energy is relatively low. Solar evacuated tubing could get hot enough.