It’s a bit more complicated. We were already planning to get out of nuclear because our plants were aging and new ones weren’t economical. Then the government decided to freeze those plans for the time being. (IIRC one reason was that they wanted to close some of our terrible coal power plants first.) Then Fukushima happened and the Greens got everyone to panic.
We could’ve gone with a measured response but a combination of the Greens believing that nuclear power is infinitely bad and plenty of old people still having vivid memories of fallout-related health warnings from Chernobyl was enough to drive most of the country into an antinuclear frenzy. It’s almost a miracle they didn’t force all of the plants to scram immediately.
Most of our plants were already fairly old and major overhauls would’ve been necessary.
In 2000 we had plans for a nuclear exit already, intending to phase them out until 2015. In 2010 the government decided to keep some running. IIRC they did that in part so they could shut down coal plants instead.
Then Fukushima happened and we went full panic mode, deciding to shut all of them down ASAP. Then the Ukraine war got reignited and the timeline got slightly stretched out a little again for practical reasons.
The last three reactors got shut down last April, about eight years later than the 2000 plan intended.