Usually smaller countries that have the resources can pull it off. (hydric in the case of Albania, as it is 70% mountainous and has a lot of rivers crossing it).
The downside is that is very much rainfall dependent. There are years where it could actually export energy, and there are years that it has to import it to meet demand.
https://i.redd.it/ul78e5rqdvt21.png
For more in Europe: https://www.reddit.com/r/europe/comments/bg6hnz/electricity_...