Hamas puts their combatants and hardware among their civilians. Their decision.
Israel always gives advance notice and evac routes for civilians.
Hamas is free to leave anytime.
Not always.