Based on the given text, do beavers eat wood or do they only chop down trees for dams?

Beavers are herbivorous and are known to consume tree bark as part of their diet. However, beavers often build dams and lodges using fallen tree branches and other vegetation that they chew with their teeth in order to make materials for restricting water flow and shelter.