Hamas said that it has accepted some elements of U. S. President Donald Trump’s plan to end the war in Gaza, including giving up power and releasing all remaining hostages.