How is detritus important to wetland ecosystems?

How is detritus important to wetland ecosystems?